-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (83 loc) · 2.54 KB
/
Cargo.toml
File metadata and controls
95 lines (83 loc) · 2.54 KB
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
[package]
name = "proteus-wasm"
version = "2.1.0"
authors = ["Wire Swiss GmbH <seceng@wire.com>"]
description = "Axolotl protocol implementation"
homepage = "https://github.com/wireapp/proteus"
repository = "https://github.com/wireapp/proteus.git"
license = "GPL-3.0-only"
edition = "2021"
[workspace]
members = ["crates/proteus-traits", "crates/cbor-codec"]
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(wasm_bindgen_unstable_test_coverage)',
] }
[lints]
workspace = true
[patch.'https://github.com/wireapp/proteus'.proteus]
package = "proteus"
# Keep the extra / in the url, it prevents this error:
# `patch for `proteus` in `https://github.com/wireapp/proteus` points to the same source, but patches must point to different sources`
git = "https://github.com/wireapp//proteus"
branch = "otak/fix-1.0.3"
[features]
default = []
cryptobox-identity = []
public-key-batch-verification = ["ed25519-dalek/batch"]
hazmat = []
serde = [
"dep:serde",
"ed25519-dalek/serde",
"zeroize/serde",
"generic-array/serde",
"hex/serde",
]
[dependencies]
thiserror = "1.0"
proteus-traits = { version = "2.1", path = "crates/proteus-traits" }
# CSPRNG
rand = { version = "0.9", features = ["os_rng"] }
getrandom = { version = "0.3.4", features = ["wasm_js"] }
rand_chacha = "0.9"
# Crypto
zeroize = { version = "1.6", features = ["zeroize_derive"] }
sha2 = "0.10"
hkdf = "0.12"
hmac = "0.12"
chacha20 = "0.9"
generic-array = "0.14"
ed25519-dalek = { version = "2.0.0-rc.3", features = ["zeroize", "fast"] }
x25519-dalek = { version = "2.0.0-rc.3", features = [
"precomputed-tables",
"static_secrets",
"zeroize",
] }
curve25519-dalek = { version = "4.0.0-rc.3", features = [
"precomputed-tables",
"zeroize",
] }
subtle = "2.5"
# Utils
hex = "0.4"
cbor-codec = { path = "crates/cbor-codec" }
eyre = "0.6"
serde = { version = "1", features = ["derive"], optional = true }
[dev-dependencies]
criterion = { version = "0.5", default-features = false }
pretty_assertions = "1.3"
proteus-wasm = { path = ".", package = "proteus-wasm", features = [
"hazmat",
"cryptobox-identity",
"public-key-batch-verification",
] }
wasm-bindgen-test = "0.3"
ciborium = "0.2"
async-std = { version = "1.12", features = ["attributes"] }
async-trait = "0.1"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
cryptobox = { git = "https://github.com/wireapp/cryptobox", tag = "v1.0.3" }
proteus = { git = "https://github.com/wireapp/proteus", branch = "otak/fix-1.0.3", package = "proteus" }
[[bench]]
name = "benchmarks"
harness = false