2020-10-20 14:12:37 -07:00
|
|
|
[package]
|
2022-01-27 13:53:10 -08:00
|
|
|
name = "halo2_gadgets"
|
2022-06-23 10:41:52 -07:00
|
|
|
version = "0.2.0"
|
2020-10-20 14:12:37 -07:00
|
|
|
authors = [
|
|
|
|
"Sean Bowe <sean@electriccoin.co>",
|
2020-10-20 15:03:33 -07:00
|
|
|
"Jack Grigg <jack@electriccoin.co>",
|
2021-12-17 14:10:35 -08:00
|
|
|
"Daira Hopwood <daira@jacaranda.org>",
|
|
|
|
"Ying Tong Lai <yingtong@electriccoin.co>",
|
|
|
|
"Kris Nuttycombe <kris@electriccoin.co>",
|
2020-10-20 14:12:37 -07:00
|
|
|
]
|
2022-04-27 04:52:58 -07:00
|
|
|
edition = "2021"
|
2023-02-10 09:48:42 -08:00
|
|
|
rust-version = "1.59"
|
2022-05-10 14:59:23 -07:00
|
|
|
description = "Reusable gadgets and chip implementations for Halo 2"
|
2022-04-07 07:22:49 -07:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-01-27 13:53:10 -08:00
|
|
|
repository = "https://github.com/zcash/halo2"
|
2020-10-20 14:12:37 -07:00
|
|
|
readme = "README.md"
|
2022-01-27 13:53:10 -08:00
|
|
|
categories = ["cryptography"]
|
2022-02-14 13:56:56 -08:00
|
|
|
keywords = ["halo", "proofs", "zcash", "zkp", "zkSNARKs"]
|
2020-10-20 14:12:37 -07:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2021-12-17 14:08:58 -08:00
|
|
|
all-features = true
|
2022-03-17 12:03:50 -07:00
|
|
|
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]
|
2020-10-20 15:18:25 -07:00
|
|
|
|
2020-10-20 15:18:40 -07:00
|
|
|
[dependencies]
|
2021-05-03 08:55:37 -07:00
|
|
|
arrayvec = "0.7.0"
|
2022-05-04 16:36:18 -07:00
|
|
|
bitvec = "1"
|
2022-12-05 20:55:21 -08:00
|
|
|
ff = "0.13"
|
|
|
|
group = "0.13"
|
2023-02-14 11:03:07 -08:00
|
|
|
halo2_proofs = { version = "0.2", path = "../halo2_proofs", default-features = false }
|
2021-06-08 00:27:08 -07:00
|
|
|
lazy_static = "1"
|
2022-12-05 20:55:21 -08:00
|
|
|
pasta_curves = "0.5"
|
2021-04-27 06:49:49 -07:00
|
|
|
proptest = { version = "1.0.0", optional = true }
|
2021-04-14 21:13:41 -07:00
|
|
|
rand = "0.8"
|
2021-03-05 15:25:45 -08:00
|
|
|
subtle = "2.3"
|
2022-04-27 05:00:33 -07:00
|
|
|
uint = "0.9.2" # MSRV 1.56.1
|
2021-03-05 15:25:45 -08:00
|
|
|
|
2021-02-08 14:56:58 -08:00
|
|
|
# Developer tooling dependencies
|
2022-09-12 11:10:03 -07:00
|
|
|
plotters = { version = "0.3.0", default-features = false, optional = true }
|
2021-02-08 14:56:58 -08:00
|
|
|
|
2020-10-20 15:18:25 -07:00
|
|
|
[dev-dependencies]
|
|
|
|
criterion = "0.3"
|
2021-04-27 12:56:36 -07:00
|
|
|
proptest = "1.0.0"
|
2020-10-20 15:18:25 -07:00
|
|
|
|
2021-06-16 06:46:17 -07:00
|
|
|
[target.'cfg(unix)'.dev-dependencies]
|
2023-02-14 10:16:50 -08:00
|
|
|
inferno = ">=0.11, <0.11.5" # MSRV 1.59
|
2022-04-27 05:23:45 -07:00
|
|
|
pprof = { version = "0.8", features = ["criterion", "flamegraph"] } # MSRV 1.56
|
2021-06-16 06:46:17 -07:00
|
|
|
|
2020-10-20 15:18:25 -07:00
|
|
|
[lib]
|
|
|
|
bench = false
|
2021-03-19 22:19:51 -07:00
|
|
|
|
2021-04-27 06:49:49 -07:00
|
|
|
[features]
|
2022-09-12 11:10:03 -07:00
|
|
|
test-dev-graph = [
|
|
|
|
"halo2_proofs/dev-graph",
|
|
|
|
"plotters",
|
|
|
|
"plotters/bitmap_backend",
|
|
|
|
"plotters/bitmap_encoder",
|
|
|
|
]
|
2021-04-27 06:49:49 -07:00
|
|
|
test-dependencies = ["proptest"]
|
|
|
|
|
2023-01-03 11:01:06 -08:00
|
|
|
# In-development features
|
|
|
|
# See https://zcash.github.io/halo2/dev/features.html
|
|
|
|
beta = [
|
|
|
|
"halo2_proofs/beta",
|
|
|
|
]
|
|
|
|
nightly = [
|
|
|
|
"beta",
|
|
|
|
"halo2_proofs/nightly",
|
2023-01-03 11:08:08 -08:00
|
|
|
"unstable-sha256-gadget",
|
2023-01-03 11:01:06 -08:00
|
|
|
]
|
2023-01-03 11:08:08 -08:00
|
|
|
unstable-sha256-gadget = []
|
2023-01-03 11:01:06 -08:00
|
|
|
# Add flags for in-development features above this line.
|
|
|
|
|
2021-08-10 04:45:23 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "primitives"
|
|
|
|
harness = false
|
|
|
|
|
2021-11-03 18:07:28 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "poseidon"
|
|
|
|
harness = false
|
|
|
|
|
2022-01-27 15:18:48 -08:00
|
|
|
[[bench]]
|
|
|
|
name = "sha256"
|
|
|
|
harness = false
|
2023-01-03 11:08:08 -08:00
|
|
|
required-features = ["unstable-sha256-gadget"]
|