-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathCargo.toml
94 lines (75 loc) · 2.28 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
[package]
name = "lambdaworks-math"
description = "Modular math library for cryptography"
version.workspace = true
edition.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", default-features = false, features = [
"derive",
], optional = true }
serde_json = { version = "1.0", default-features = false, features = [
"alloc",
], optional = true }
proptest = { version = "1.1.0", optional = true }
winter-math = { package = "winter-math", version = "0.6.4", default-features = false, optional = true }
miden-core = { package = "miden-core", version = "0.7", default-features = false, optional = true }
rand = { version = "0.8.5", default-features = false }
# rayon
rayon = { version = "1.7", optional = true }
# cuda
cudarc = { version = "0.9.7", optional = true }
lambdaworks-gpu = { workspace = true, optional = true }
[dev-dependencies]
rand_chacha = "0.3.1"
criterion = "0.5.1"
const-random = "0.1.15"
iai-callgrind.workspace = true
proptest = "1.1.0"
pprof = { version = "0.13.0", features = ["criterion", "flamegraph"] }
p3-baby-bear = { git = "https://github.com/Plonky3/Plonky3" }
p3-field = { git = "https://github.com/Plonky3/Plonky3" }
rand = { version = "0.8.5", features = ["std"] }
[features]
default = ["parallel", "std"]
std = ["alloc", "serde?/std", "serde_json?/std"]
alloc = []
parallel = ["dep:rayon"]
lambdaworks-serde-binary = ["dep:serde", "alloc"]
lambdaworks-serde-string = ["dep:serde", "dep:serde_json", "alloc"]
proptest = ["dep:proptest"]
winter_compatibility = ["winter-math", "miden-core"]
instruments = []
# gpu
cuda = ["dep:cudarc", "dep:lambdaworks-gpu"]
[target.wasm32-unknown-unknown.dependencies]
getrandom = { version = "0.2.15", features = ["js"] }
[[bench]]
name = "criterion_elliptic_curve"
harness = false
[[bench]]
name = "iai_elliptic_curve"
harness = false
[[bench]]
name = "criterion_polynomial"
harness = false
[[bench]]
name = "iai_polynomial"
harness = false
[[bench]]
name = "criterion_field"
harness = false
[[bench]]
name = "iai_field"
harness = false
[[bench]]
name = "criterion_msm"
harness = false
required-features = ["parallel"]
[[bench]]
name = "criterion_fft"
harness = false
[[bench]]
name = "iai_fft"
harness = false