-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathCargo.toml
49 lines (42 loc) · 1.47 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
[package]
name = "garaga_rs"
version = "0.15.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "garaga_rs"
crate-type = ["cdylib", "rlib"]
[profile.release]
lto = true
debug = false
opt-level = 3
[features]
# both features are on by default, but note that
# - python bindings are automatically excluded on wasm32-unknown-unknown
# - wasm bindings are garbage collected when not on wasm32-unknown-unknown
default = ["python", "wasm"]
python = ["dep:pyo3"]
wasm = ["dep:wasm-bindgen"]
[dev-dependencies]
wasm-bindgen-test = "0.3"
# assumes python dependencies when not on wasm32-unknown-unknown
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pyo3 = { version = "0.23", features = ["extension-module", "num-bigint"] }
# assumes wasm dependencies when on wasm32-unknown-unknown
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
[dependencies]
pyo3 = { version = "0.23", features = ["extension-module", "num-bigint"], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
num-bigint = "0.4"
num-traits = "0.2"
ark-bn254 = "0.4"
ark-bls12-381 = "0.4"
ark-ec = "0.4"
ark-ff = "0.4"
hex = "0.4"
sha2 = "0.10"
js-sys = "0.3"
starknet-types-core = { version = "0.1.7", default-features = false, features = ["curve"] }
lambdaworks-crypto = { git = "https://github.com/lambdaclass/lambdaworks.git" }
lambdaworks-math = { git = "https://github.com/lambdaclass/lambdaworks.git" }