mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-12 19:24:07 +00:00
51 lines
1.3 KiB
TOML
51 lines
1.3 KiB
TOML
[package]
|
|
name = "c-kzg"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
# XXX: Note that we don't set a `links` attribute for Cargo, because this library may link
|
|
# either `ckzg` or `ckzg_min`. This allows the crate to be linked twice as minimal/mainnet variants
|
|
# without Cargo complaining.
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
default = ["std", "mainnet-spec"]
|
|
std = ["hex/std", "libc/std", "serde?/std"]
|
|
serde = ["dep:serde"]
|
|
mainnet-spec = []
|
|
minimal-spec = []
|
|
|
|
# BLST Compilation:
|
|
# Suppress multi-threading.
|
|
# Engaged on wasm32 target architecture automatically.
|
|
no-threads = []
|
|
|
|
[dependencies]
|
|
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",
|
|
] }
|
|
blst = { version = "0.3.11", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.5.1"
|
|
glob = "0.3.1"
|
|
rand = "0.8.5"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_yaml = "0.9.17"
|
|
serde_json = "1.0.105"
|
|
|
|
[build-dependencies]
|
|
bindgen = "0.66.1"
|
|
cc = "1.0"
|
|
|
|
[target.'cfg(target_env = "msvc")'.build-dependencies]
|
|
glob = "0.3"
|
|
|
|
[[bench]]
|
|
name = "kzg_benches"
|
|
harness = false
|