uniffi-rs-fullstack-examples/hello/Cargo.toml

35 lines
935 B
TOML

[package]
authors = ["Daohan Chong <wildcat.name@gmail.com>"]
edition = "2021"
name = "hello"
version = "0.1.0"
[lib]
crate-type = [
"staticlib", # must for iOS
"rlib",
"cdylib", # must for Android
]
# staticlib would be good enough.
# adding "rlib" here just in case that we need to call these public interfaces directly from another Rust crate
name = "hello"
[dependencies]
async-std = "1.12.0"
once_cell = "1.18.0"
uniffi = { workspace = true }
# uniffi_bindgen = { workspace = true }
# uniffi_macros = { workspace = true }
[build-dependencies]
uniffi = { workspace = true, features = ["build"] }
[profile.release]
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
lto = true # Enable Link Time Optimization
opt-level = 'z' # Optimize for size.
# panic = 'abort' # Abort on panic
debug = true # Enable debug symbols. For example, we can use `dwarfdump` to check crash traces.