-
Notifications
You must be signed in to change notification settings - Fork 112
/
Cargo.toml
68 lines (58 loc) · 1.96 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
[package]
name = "c-kzg"
version = "2.0.1"
edition = "2021"
license = "Apache-2.0"
description = "A minimal implementation of the Polynomial Commitments API for EIP-4844 and EIP-7594, written in C."
links = "ckzg"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
include = [
"src",
"inc",
"bindings/rust/src",
"bindings/rust/build.rs",
"blst/bindings/*.h",
]
build = "bindings/rust/build.rs"
[lib]
path = "bindings/rust/src/lib.rs"
[features]
default = ["std", "portable", "ethereum_kzg_settings"]
std = ["hex/std", "libc/std", "serde?/std", "once_cell?/std"]
serde = ["dep:serde"]
generate-bindings = ["dep:bindgen"]
ethereum_kzg_settings = ["dep:once_cell"]
# Enable this feature when running the tests to generate the fuzzing corpus.
# This converts the yaml reference tests into a binary form for the fuzzer.
generate-fuzz-corpus = []
# This is a standalone feature so that crates that disable default features can
# enable blst/portable without having to add it as a dependency
portable = ["blst/portable"]
# BLST Compilation:
# Suppress multi-threading.
# Engaged on wasm32 target architecture automatically.
no-threads = ["blst/no-threads"]
[dependencies]
arbitrary = { version = "1", features = ["derive"] }
blst = { version = "0.3.12", default-features = false }
hex = { version = "0.4.2", default-features = false, features = ["alloc"] }
libc = { version = "0.2", default-features = false }
serde = { version = "1.0", optional = true, default-features = false, features = [
"alloc",
"derive",
] }
once_cell = { version = "1.19", default-features = false, features = [
"alloc",
], optional = true }
[dev-dependencies]
criterion = "0.5.1"
glob = "0.3.1"
rand = "0.8.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.105"
serde_yaml = "0.9.17"
[build-dependencies]
bindgen = { version = "0.69", optional = true }
cc = "1.0"
[target.'cfg(target_env = "msvc")'.build-dependencies]
glob = "0.3"