-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (57 loc) · 1.9 KB
/
Copy pathCargo.toml
File metadata and controls
68 lines (57 loc) · 1.9 KB
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
[package]
name = "hca-rs"
version = "0.3.0"
edition = "2021"
rust-version = "1.71"
description = "HCA — Hash-Committed Account cryptographic primitives for Ethereum"
license = "Apache-2.0"
repository = "https://github.com/eth-hca/hca-rs"
keywords = ["ethereum", "cryptography", "merkle", "post-quantum", "hca"]
categories = ["cryptography", "wasm"]
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "hca"
path = "src/bin/hca.rs"
required-features = ["std", "serde"]
[features]
default = ["std", "serde"]
std = ["hex/std", "serde_json", "serde?/std", "dep:clap"]
serde = ["dep:serde"]
parallel = ["std", "dep:rayon", "dep:rayon-core"]
wasm = ["std", "serde", "wasm-bindgen", "js-sys", "console_error_panic_hook"]
[dependencies]
tiny-keccak = { version = "2.0", features = ["keccak"] }
subtle = { version = "2.6", default-features = false }
sha2 = { version = "0.10", default-features = false }
hex = { version = "0.4", default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
serde_json = { version = "1.0", optional = true }
clap = { version = "=4.4.18", features = ["derive"], optional = true }
rayon = { version = "=1.9.0", optional = true }
rayon-core = { version = "=1.12.1", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
js-sys = { version = "0.3", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
[dev-dependencies]
hex-literal = "0.4"
proptest = "1.5"
criterion = { version = "0.5", features = ["html_reports"] }
serde_json = "1.0"
hex = "0.4"
# Integration tests always need std (they link against the std test harness)
hca-rs = { path = ".", features = ["std"] }
[[bench]]
name = "hash_bench"
harness = false
[[bench]]
name = "merkle_bench"
harness = false
[[bench]]
name = "address_bench"
harness = false
[[bench]]
name = "full_flow_bench"
harness = false
[profile.release]
opt-level = 3