-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
22 lines (20 loc) · 869 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[workspace]
members = ["appy", "capacitor-rs"]
edition = "2021"
resolver = "2"
# Ignore the mobile crate which is only used to generate bindings to Swift, and
# the shared crate which is shared between both.
exclude = ["mobile", "shared"]
# Optimize for WASM binary size:
# - https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles
# - https://github.com/johnthagen/min-sized-rust
[profile.release]
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization.
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization.
strip = true # Automatically strip symbols from the binary.
debug = false
[patch.crates-io]
# We patch in our shared code to allow it to live independently of the appy crate
# allowing us to pull in only the shared code in the mobile crate.
shared = { path = "./shared" }