forked from xmtp/libxmtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
163 lines (149 loc) · 5 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[workspace]
members = [
"examples/cli",
"mls_validation_service",
"xmtp_cryptography",
"xmtp_api_grpc",
"xmtp_api_http",
"xmtp_proto",
"xmtp_mls",
"xmtp_api",
"xmtp_id",
"bindings_wasm",
"bindings_node",
"bindings_ffi",
"xtask",
"xmtp_debug",
"xmtp_content_types",
"common",
"xmtp_api_d14n",
]
# Make the feature resolver explicit.
# See https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#details
resolver = "2"
[workspace.package]
license = "MIT"
version = "0.1.0"
[workspace.dependencies]
anyhow = "1.0"
async-compression = { default-features = false, version = "0.4", features = [
"futures-io",
"zstd",
] }
async-stream = "0.3"
async-trait = "0.1.77"
base64 = "0.22"
bincode = "1.3"
chrono = "0.4.38"
console_error_panic_hook = "0.1"
const_format = "0.2"
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
ctor = "0.2"
diesel = { version = "2.2", default-features = false }
diesel_migrations = { version = "2.2", default-features = false }
dyn-clone = "1"
ed25519 = "2.2.3"
ed25519-dalek = { version = "2.1.1", features = ["zeroize"] }
ethers = { version = "2.0", default-features = false }
fdlimit = "0.3"
futures = { version = "0.3.30", default-features = false }
getrandom = { version = "0.2", default-features = false }
arc-swap = "1.7"
gloo-timers = "0.3"
hex = "0.4.3"
hkdf = "0.12.3"
js-sys = "0.3"
libsqlite3-sys = { version = "0.29", features = [
"bundled-sqlcipher-vendored-openssl",
] }
mockall = "0.13"
once_cell = "1.2"
openmls = { git = "https://github.com/xmtp/openmls", rev = "082cab5f17a54796e87bc1762a64496c86cb9bf8", default-features = false }
openmls_basic_credential = { git = "https://github.com/xmtp/openmls", rev = "082cab5f17a54796e87bc1762a64496c86cb9bf8" }
openmls_rust_crypto = { git = "https://github.com/xmtp/openmls", rev = "082cab5f17a54796e87bc1762a64496c86cb9bf8" }
openmls_traits = { git = "https://github.com/xmtp/openmls", rev = "082cab5f17a54796e87bc1762a64496c86cb9bf8" }
openssl = { version = "0.10", features = ["vendored"] }
openssl-sys = { version = "0.9", features = ["vendored"] }
parking_lot = "0.12.3"
pbjson = "0.7.0"
pbjson-types = "0.7.0"
prost = { version = "^0.13", default-features = false }
prost-types = { version = "^0.13", default-features = false }
rand = "0.8.5"
regex = "1.10.4"
rustc-hex = "2.1.0"
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0", default-features = false }
sha2 = "0.10.8"
sha3 = "0.10.8"
sqlite-web = "0.0.1"
thiserror = "2.0"
tls_codec = "0.4.1"
tokio = { version = "1.43.0", default-features = false }
tokio-stream = { version = "0.1", default-features = false }
uuid = "1.12"
vergen-git2 = "1.0.2"
web-time = "1.1"
bytes = "1.9"
pin-project-lite = "0.2"
reqwest = { version = "0.12.12", features = ["json", "stream"] }
itertools = "0.14"
tonic = { version = "0.12", default-features = false }
tracing = { version = "0.1", features = ["log"] }
tracing-logfmt = "0.3"
tracing-subscriber = { version = "0.3", default-features = false }
trait-variant = "0.1.2"
url = "2.5.0"
wasm-bindgen = "=0.2.100"
wasm-bindgen-futures = "0.4.50"
wasm-bindgen-test = "0.3.50"
web-sys = "0.3"
zeroize = "1.8"
# Internal Crate Dependencies
xmtp_api = { path = "xmtp_api" }
xmtp_api_grpc = { path = "xmtp_api_grpc" }
xmtp_api_http = { path = "xmtp_api_http" }
xmtp_common = { path = "common" }
xmtp_content_types = { path = "xmtp_content_types" }
xmtp_cryptography = { path = "xmtp_cryptography" }
xmtp_id = { path = "xmtp_id" }
xmtp_mls = { path = "xmtp_mls" }
xmtp_proto = { path = "xmtp_proto" }
[profile.dev]
# Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much.
debug = 0
[profile.bench]
debug = true
# Setting opt-level to 3 for proc macros/build scripts
# speeds up buildtime
[profile.dev.build-override]
opt-level = 3
[profile.release]
incremental = true
opt-level = "s"
panic = 'abort'
[profile.release-with-lto]
inherits = "release"
lto = true
[profile.release.package.bindings_node]
strip = "symbols"
# NOTE: The release profile reduces bundle size from 230M to 41M - may have performance impliciations
# https://stackoverflow.com/a/54842093
[profile.release.package.xmtpv3]
codegen-units = 1 # Reduce number of codegen units to increase optimizations
inherits = "release-with-lto"
opt-level = 'z' # Optimize for size + loop vectorization
strip = true # Strip symbols from binary*
[profile.release.package.bindings_wasm]
inherits = "release-with-lto"
# optimize for binary size
opt-level = "s"
# patch needed until some items
# are made public for third-party dependencies: https://github.com/diesel-rs/diesel/pull/4236
# (cfg-specific patche support does not exist)
[patch.crates-io]
diesel = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
diesel_derives = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
diesel_migrations = { git = "https://github.com/diesel-rs/diesel", branch = "master" }
sqlite-web = { git = "https://github.com/xmtp/sqlite-web-rs", branch = "main" }