forked from divviup/libprio-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
71 lines (60 loc) · 2.01 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
[package]
name = "prio"
version = "0.8.2"
authors = ["Josh Aas <[email protected]>", "Tim Geoghegan <[email protected]>", "Christopher Patton <[email protected]", "Karl Tarbe <[email protected]>"]
edition = "2018"
description = "Implementation of the Prio aggregation system core: https://crypto.stanford.edu/prio/"
license = "MPL-2.0"
repository = "https://github.com/divviup/libprio-rs"
rust-version = "1.58"
resolver = "2"
[dependencies]
aes = { version = "0.8.1", optional = true }
ctr = { version = "0.9.1", optional = true }
cmac = { version = "0.7.1", optional = true }
base64 = "0.13.0"
byteorder = "1.4.3"
getrandom = { version = "0.2.7", features = ["std"] }
serde = { version = "1.0", features = ["derive"] }
static_assertions = "1.1.0"
thiserror = "1.0"
# dependencies required if feature "test-vector" is enabled
rand = { version = "0.8", optional = true }
serde_json = { version = "1.0", optional = true }
# dependencies required if feature "multithreaded" is enabled
rayon = { version = "1.5.3", optional = true }
# dependencies required if feature "prio2" is enabled
aes-gcm = { version = "^0.9", optional = true }
ring = { version = "0.16.20", optional = true }
[dev-dependencies]
assert_matches = "1.5.0"
criterion = "0.3"
itertools = "0.10.3"
modinverse = "0.1.0"
num-bigint = "0.4.3"
serde_json = "1.0"
hex = { version = "0.4.3" , features = ["serde"] }
# Enable test_vector module for test targets
# https://github.com/rust-lang/cargo/issues/2911#issuecomment-749580481
prio = { path = ".", features = ["test-vector"] }
[features]
default = ["internal_prg"]
test-vector = ["rand", "serde_json"]
multithreaded = ["rayon"]
prio2 = ["aes-gcm", "ring"]
internal_prg = ["aes", "ctr", "cmac"]
[workspace]
members = [".", "binaries"]
[[bench]]
name = "speed_tests"
harness = false
[[example]]
name = "sum"
required-features = ["prio2"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "backward_compatibility"
path = "tests/backward_compatibility.rs"
required-features = ["prio2"]