-
Notifications
You must be signed in to change notification settings - Fork 34
/
Cargo.toml
74 lines (64 loc) · 2.38 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
[package]
name = "proteus-wasm"
version = "2.1.0"
authors = ["Wire Swiss GmbH <[email protected]>"]
description = "Axolotl protocol implementation"
homepage = "https://github.com/wireapp/proteus"
repository = "https://github.com/wireapp/proteus.git"
license = "GPL-3.0"
edition = "2021"
[workspace]
members = [
"crates/proteus-traits",
"crates/cbor-codec",
]
[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.8", features = ["getrandom"] }
rand_core = "0.6"
getrandom = { version = "0.2", features = ["js"] }
rand_chacha = "0.3"
# 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