semaphore-rs/Cargo.toml

85 lines
2.7 KiB
TOML
Raw Normal View History

2022-01-28 01:43:38 +01:00
[package]
2022-02-01 12:17:05 -08:00
name = "semaphore"
2022-01-28 01:43:38 +01:00
version = "0.1.0"
edition = "2021"
2022-02-01 12:17:05 -08:00
authors = [
"Remco Bloemen <remco@worldcoin.org>",
"Philipp Sippl <philipp@worldcoin.org>"]
homepage = "https://github.com/worldcoin/semaphore-rs"
repository = "https://github.com/worldcoin/semaphore-rs"
description = "Rust support library for Semaphore"
keywords = ["worldcoin", "protocol", "signup"]
categories = ["cryptography"]
readme = "Readme.md"
license-file = "mit-license.md"
2022-01-28 01:43:38 +01:00
2022-02-28 19:44:30 -08:00
[features]
default = []
bench = [ "criterion", "proptest" ]
2022-06-03 16:02:11 -07:00
mimc = []
2022-04-04 12:20:26 -07:00
dylib = [ "wasmer/dylib", "wasmer-engine-dylib", "wasmer-compiler-cranelift" ]
2022-02-28 19:44:30 -08:00
[[bench]]
name = "criterion"
harness = false
path = "criterion.rs"
required-features = [ "bench", "proptest" ]
2022-01-28 01:43:38 +01:00
[dependencies]
ark-bn254 = { version = "0.3.0" }
2022-03-23 21:33:36 -07:00
ark-circom = { git = "https://github.com/gakonst/ark-circom", rev="a93c8b0", features=["circom-2"] }
2022-02-01 02:31:07 +01:00
ark-ec = { version = "0.3.0", default-features = false, features = ["parallel"] }
ark-ff = { version = "0.3.0", default-features = false, features = ["parallel", "asm"] }
2022-02-28 19:44:30 -08:00
ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", rev = "765817f", features = ["parallel"] }
2022-02-01 02:31:07 +01:00
ark-relations = { version = "0.3.0", default-features = false }
2022-02-28 19:44:30 -08:00
ark-std = { version = "0.3.0", default-features = false, features = ["parallel"] }
2022-01-28 01:43:38 +01:00
color-eyre = "0.5"
2022-02-28 19:44:30 -08:00
criterion = { version = "0.3", optional = true, features = [ "async_tokio" ] }
ff = { package="ff_ce", version="0.11"}
hex = "0.4.0"
2022-01-29 12:52:32 +01:00
hex-literal = "0.3"
2022-02-28 19:44:30 -08:00
num-bigint = { version = "0.4", default-features = false, features = ["rand"] }
once_cell = "1.8"
poseidon-rs = "0.0.8"
2022-03-18 12:34:36 -07:00
primitive-types = "0.11.1"
2022-02-01 11:40:06 -08:00
proptest = { version = "1.0", optional = true }
2022-03-18 18:23:38 -07:00
rand = "0.8.4"
2022-02-01 11:40:06 -08:00
rayon = "1.5.1"
2022-06-03 18:46:57 -07:00
ruint = { version = "1.1.0", path = "../../WV/uint", features = [ "serde", "poseidon-rs", "num-bigint", "ark-ff" ] }
2022-02-28 19:44:30 -08:00
serde = "1.0"
sha2 = "0.10.1"
2022-03-11 10:35:29 -08:00
thiserror = "1.0.0"
tiny-keccak = { version = "2.0.2" }
2022-04-04 12:04:05 -07:00
wasmer = { version = "2.0" }
2022-02-01 11:40:06 -08:00
2022-03-10 16:06:26 -08:00
# Use the same `ethers-core` version as ark-circom
# TODO: Remove
2022-03-10 16:06:26 -08:00
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
2022-02-25 16:22:27 -08:00
[dev-dependencies]
2022-03-17 16:06:47 -07:00
bincode = "1.3.3"
proptest = "1.0"
2022-03-18 18:23:38 -07:00
rand_chacha = "0.3.1"
2022-02-25 16:22:27 -08:00
serde_json = "1.0.79"
2022-02-28 19:44:30 -08:00
tempfile = "3.0"
tiny-keccak = "2.0.2"
tracing-test = "0.2"
2022-02-25 16:22:27 -08:00
2022-03-24 14:08:34 -07:00
[build-dependencies]
color-eyre = "0.5"
2022-03-24 15:21:47 -07:00
enumset = "1.0.8"
2022-04-04 12:20:26 -07:00
wasmer = { version = "2.0" }
wasmer-engine-dylib = { version = "2.2.1", optional = true }
wasmer-compiler-cranelift = { version = "2.2.1", optional = true }
2022-03-23 22:05:30 -07:00
2022-02-01 11:40:06 -08:00
[profile.release]
codegen-units = 1
lto = true
panic = "abort"
opt-level = 3
# Compilation profile for any non-workspace member.
# Dependencies are optimized, even in a dev build. This improves dev performance
# while having neglible impact on incremental build times.
[profile.dev.package."*"]
2022-02-26 18:45:25 +01:00
opt-level = 3