forked from matrix-org/matrix-rich-text-editor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
31 lines (28 loc) · 1.14 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[workspace]
members = [
"bindings/wysiwyg-ffi",
"bindings/wysiwyg-wasm",
"crates/wysiwyg",
"crates/matrix_mentions",
"uniffi-bindgen",
]
default-members = [
"crates/wysiwyg",
"crates/matrix_mentions",
]
resolver = "2"
[workspace.package]
rust-version = "1.76"
[workspace.dependencies]
uniffi = { git = "https://github.com/mozilla/uniffi-rs", rev = "789a9023b522562a95618443cee5a0d4f111c4c7" }
uniffi_macros = { git = "https://github.com/mozilla/uniffi-rs", rev = "789a9023b522562a95618443cee5a0d4f111c4c7" }
uniffi_build = { git = "https://github.com/mozilla/uniffi-rs", rev = "789a9023b522562a95618443cee5a0d4f111c4c7" }
[profile.release]
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
# Unwind on panic to allow error handling at the FFI boundary. Note this
# imposes a small performance/size cost and it could be worth switching
# the behaviour to 'abort' once the library is stable.
panic = 'unwind'
debug = true # Enable debug symbols. For example, we can use `dwarfdump` to check crash traces.