-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCargo.toml
44 lines (38 loc) · 1.39 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
32
33
34
35
36
37
38
39
40
41
42
43
44
[package]
edition = "2021"
name = "xmtpv3"
version = "0.1.0"
[lib]
crate-type = ["lib", "cdylib", "staticlib"]
[dependencies]
futures = "0.3.28"
log = { version = "0.4", features = ["std"] }
thiserror = "1.0"
tokio = { version = "1.28.1", features = ["macros"] }
uniffi = { version = "0.25.3", features = ["tokio", "cli"] }
uniffi_macros = "0.25.3"
xmtp_api_grpc = { path = "../xmtp_api_grpc" }
xmtp_cryptography = { path = "../xmtp_cryptography" }
xmtp_mls = { path = "../xmtp_mls", features = ["grpc", "native"] }
xmtp_proto = { path = "../xmtp_proto", features = ["proto_full", "grpc"] }
xmtp_user_preferences = { path = "../xmtp_user_preferences" }
xmtp_v2 = { path = "../xmtp_v2" }
[build-dependencies]
uniffi = { version = "0.25.3", features = ["build"] }
[[bin]]
name = "ffi-uniffi-bindgen"
path = "src/bin.rs"
[dev-dependencies]
ethers = "2.0.13"
ethers-core = "2.0.13"
tempfile = "3.5.0"
tokio = { version = "1.28.1", features = ["full"] }
uniffi = { version = "0.25.3", features = ["bindgen-tests"] }
# NOTE: The release profile reduces bundle size from 230M to 41M - may have performance impliciations
# https://stackoverflow.com/a/54842093
[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
strip = true # Strip symbols from binary*