-
-
Notifications
You must be signed in to change notification settings - Fork 417
/
Cargo.toml
163 lines (153 loc) · 4.75 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]
# When adding new members, consider updating the log filter in rust/bridge/shared/src/logging.rs.
members = [
"rust/attest",
"rust/crypto",
"rust/device-transfer",
"rust/keytrans",
"rust/media",
"rust/message-backup",
"rust/net",
"rust/account-keys",
"rust/poksho",
"rust/protocol",
"rust/svr3",
"rust/usernames",
"rust/zkcredential",
"rust/zkgroup",
"rust/bridge/ffi",
"rust/bridge/jni",
"rust/bridge/jni/testing",
"rust/bridge/node",
]
default-members = [
"rust/crypto",
"rust/device-transfer",
"rust/media",
"rust/message-backup",
"rust/account-keys",
"rust/poksho",
"rust/protocol",
"rust/usernames",
"rust/zkcredential",
"rust/zkgroup",
]
resolver = "2" # so that our dev-dependency features don't leak into products
[workspace.lints.clippy]
# Prefer TryFrom between integers unless truncation is desired.
# For converting between floats and integers, there may not be an alternative.
cast_possible_truncation = "warn"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
[workspace.dependencies]
# Our own crates, so that we don't have to depend on them by inter-crate paths
attest = { path = "rust/attest" }
device-transfer = { path = "rust/device-transfer" }
libsignal-account-keys = { path = "rust/account-keys" }
libsignal-core = { path = "rust/core" }
libsignal-keytrans = { path = "rust/keytrans" }
libsignal-message-backup = { path = "rust/message-backup" }
libsignal-net = { path = "rust/net" }
libsignal-protocol = { path = "rust/protocol" }
libsignal-svr3 = { path = "rust/svr3" }
poksho = { path = "rust/poksho" }
signal-crypto = { path = "rust/crypto" }
signal-media = { path = "rust/media" }
usernames = { path = "rust/usernames" }
zkcredential = { path = "rust/zkcredential" }
zkgroup = { path = "rust/zkgroup" }
libsignal-bridge = { path = "rust/bridge/shared" }
libsignal-bridge-macros = { path = "rust/bridge/shared/macros" }
libsignal-bridge-testing = { path = "rust/bridge/shared/testing" }
libsignal-bridge-types = { path = "rust/bridge/shared/types" }
signal-neon-futures = { path = "rust/bridge/node/futures" }
# Our forks of some dependencies, accessible as xxx_signal so that usages of them are obvious in source code. Crates
# that want to use the real things can depend on those directly.
boring-signal = { git = "https://github.com/signalapp/boring", tag = "signal-v4.9.0b", package = "boring", default-features = false }
curve25519-dalek-signal = { git = 'https://github.com/signalapp/curve25519-dalek', package = "curve25519-dalek", tag = 'signal-curve25519-4.1.3' }
tokio-boring-signal = { git = "https://github.com/signalapp/boring", package = "tokio-boring", tag = "signal-v4.9.0b" }
aes = "0.8.3"
aes-gcm-siv = "0.11.1"
array-concat = "0.5.2"
arrayvec = "0.7.4"
asn1 = "0.16.1"
assert_matches = "1.5"
async-trait = "0.1.41"
atomic-take = "1.1.0"
base64 = "0.22.1"
bincode = "1.0"
bitflags = "2.3.3"
boring = { version = "4.6.0", default-features = false }
cbc = "0.1.2"
cfg-if = "1.0.0"
chacha20poly1305 = "0.10.1"
chrono = "0.4"
ciborium = "0.2"
clap = "4.4.11"
const-str = { version = "0.5.6" }
criterion = "0.5"
ctr = "0.9.2"
curve25519-dalek = "4.1.3"
derive-where = "1.2.5"
displaydoc = "0.2"
ed25519-dalek = "2.1.0"
env_logger = "0.11.4"
futures = "0.3"
futures-util = "0.3"
heck = "0.5"
hex = "0.4"
hex-literal = "0.4.1"
hkdf = "0.12"
hmac = "0.12.0"
http = "1.0.0"
indexmap = "2.1.0"
itertools = "0.13.0"
jni = "0.21"
lazy_static = "1.4.0"
libc = "0.2"
linkme = "0.3.9"
log = "0.4"
log-panics = "2.1.0"
mediasan-common = "0.5.0"
neon = { version = "1.0.0", default-features = false }
nonzero_ext = "0.3.0"
num_enum = "0.7.2"
once_cell = "1.19.0"
partial-default = "0.1.0"
paste = "1.0"
pin-project = "1.1.5"
pretty_assertions = "1.4.0"
proc-macro2 = "1.0"
proptest = "1.0"
prost = "0.13.1"
prost-build = "0.13.1"
quote = "1.0"
rand = "0.8"
rand_core = "0.6"
rayon = "1.8.0"
rustls-platform-verifier = "0.3.1"
scopeguard = "1.0"
serde = "1.0"
serde_json = "1.0"
sha1 = "0.10"
sha2 = "0.10"
snow = { version = "0.9.6", default-features = false, features = ["hfs"] }
static_assertions = "1.1"
strum = "0.26"
subtle = "2.5"
syn = "2.0"
syn-mid = "0.6"
test-case = "3.3"
testing_logger = "0.1.1"
thiserror = "1.0.57"
tokio = "1"
tokio-stream = "0.1.14"
uuid = "1.1.2"
x25519-dalek = "2.0.0"
zerocopy = "0.7.34"
[patch.crates-io]
# When building libsignal, just use our forks so we don't end up with two different versions of the libraries.
boring = { git = 'https://github.com/signalapp/boring', tag = 'signal-v4.9.0b' }
curve25519-dalek = { git = 'https://github.com/signalapp/curve25519-dalek', tag = 'signal-curve25519-4.1.3' }
[profile.dev.package.argon2]
opt-level = 2 # libsignal-account-keys unit tests are too slow with an unoptimized argon2