matrix-rust-sdk/Cargo.toml

62 lines
2.2 KiB
TOML
Raw Normal View History

[workspace]
members = [
"benchmarks",
"bindings/matrix-sdk-crypto-ffi",
"bindings/matrix-sdk-crypto-js",
"bindings/matrix-sdk-crypto-nodejs",
"bindings/matrix-sdk-ffi",
"crates/*",
"testing/*",
"examples/*",
"labs/*",
"xtask",
]
2022-08-01 11:01:50 +00:00
# xtask, labs, testing and the bindings should only be built when invoked explicitly.
default-members = ["benchmarks", "crates/*"]
2022-05-17 08:24:28 +00:00
resolver = "2"
2022-11-03 14:58:49 +00:00
[workspace.package]
rust-version = "1.65"
[workspace.dependencies]
ruma = { git = "https://github.com/ruma/ruma", rev = "022a0c0475f7ffeccd5a26c15b9465edf06ba8b8", features = ["client-api-c"] }
ruma-common = { git = "https://github.com/ruma/ruma", rev = "022a0c0475f7ffeccd5a26c15b9465edf06ba8b8" }
tracing = { version = "0.1.36", default-features = false, features = ["std"] }
2022-12-14 09:09:27 +00:00
uniffi = { git = "https://github.com/mozilla/uniffi-rs", rev = "249a78b6f3f35661f1530e53811134e1bf012608" }
uniffi_macros = { git = "https://github.com/mozilla/uniffi-rs", rev = "249a78b6f3f35661f1530e53811134e1bf012608" }
uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs", rev = "249a78b6f3f35661f1530e53811134e1bf012608" }
uniffi_build = { git = "https://github.com/mozilla/uniffi-rs", rev = "249a78b6f3f35661f1530e53811134e1bf012608", features = ["builtin-bindgen"] }
vodozemac = "0.3.0"
zeroize = "1.3.0"
# Default release profile, select with `--release`
[profile.release]
lto = true
# Default development profile; default for most Cargo commands, otherwise
# selected with `--debug`
2022-06-03 15:10:15 +00:00
[profile.dev]
# Saves a lot of disk space. If symbols are needed, use the dbg profile.
2022-06-03 15:10:15 +00:00
debug = 0
[profile.dev.package]
# Optimize quote even in debug mode. Speeds up proc-macros enough to account
# for the extra time of optimizing it for a clean build of matrix-sdk-ffi.
quote = { opt-level = 2 }
sha2 = { opt-level = 2 }
# Custom profile with full debugging info, use `--profile debug` to select
[profile.dbg]
inherits = "dev"
debug = 2
# Custom profile for use in (debug) builds of the binding crates, use
# `--profile release_dbg` to select
[profile.reldbg]
inherits = "dev"
incremental = false
# Compile all non-workspace crate in the dependency tree with optimizations
[profile.reldbg.package."*"]
opt-level = 3