2023-01-12 17:50:12 +00:00
|
|
|
[package]
|
|
|
|
name = "c-kzg"
|
2024-05-07 20:25:24 +00:00
|
|
|
version = "1.0.2"
|
2023-01-12 17:50:12 +00:00
|
|
|
edition = "2021"
|
2023-08-09 20:49:22 +00:00
|
|
|
license = "Apache-2.0"
|
2024-05-08 14:30:48 +00:00
|
|
|
description = "A minimal implementation of the Polynomial Commitments API for EIP-4844, written in C."
|
2023-10-18 18:31:55 +00:00
|
|
|
links = "ckzg"
|
2023-01-12 17:50:12 +00:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
2024-03-15 21:49:33 +00:00
|
|
|
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"
|
2023-01-12 17:50:12 +00:00
|
|
|
|
|
|
|
[features]
|
2024-02-07 12:07:20 +00:00
|
|
|
default = ["std", "portable"]
|
2023-09-05 22:06:03 +00:00
|
|
|
std = ["hex/std", "libc/std", "serde?/std"]
|
|
|
|
serde = ["dep:serde"]
|
2024-02-06 17:39:07 +00:00
|
|
|
generate-bindings = ["dep:bindgen"]
|
2023-08-11 15:19:02 +00:00
|
|
|
|
2024-02-07 12:07:20 +00:00
|
|
|
# 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"]
|
|
|
|
|
2023-04-10 20:45:34 +00:00
|
|
|
# BLST Compilation:
|
|
|
|
# Suppress multi-threading.
|
|
|
|
# Engaged on wasm32 target architecture automatically.
|
2024-02-02 22:45:48 +00:00
|
|
|
no-threads = ["blst/no-threads"]
|
|
|
|
|
2023-01-12 17:50:12 +00:00
|
|
|
[dependencies]
|
2024-02-06 17:39:07 +00:00
|
|
|
blst = { version = "0.3.11", default-features = false }
|
2023-09-05 22:06:03 +00:00
|
|
|
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",
|
|
|
|
] }
|
2023-01-12 17:50:12 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-08-10 11:51:56 +00:00
|
|
|
criterion = "0.5.1"
|
2023-03-03 23:01:56 +00:00
|
|
|
glob = "0.3.1"
|
|
|
|
rand = "0.8.5"
|
2023-09-05 22:06:03 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2023-08-25 03:39:46 +00:00
|
|
|
serde_json = "1.0.105"
|
2024-03-15 21:49:33 +00:00
|
|
|
serde_yaml = "0.9.17"
|
2023-01-12 17:50:12 +00:00
|
|
|
|
2023-03-27 14:47:24 +00:00
|
|
|
[build-dependencies]
|
2024-02-06 17:39:07 +00:00
|
|
|
bindgen = { version = "0.69", optional = true }
|
2023-04-05 18:33:37 +00:00
|
|
|
cc = "1.0"
|
2023-03-27 14:47:24 +00:00
|
|
|
|
2023-04-10 20:45:34 +00:00
|
|
|
[target.'cfg(target_env = "msvc")'.build-dependencies]
|
|
|
|
glob = "0.3"
|
|
|
|
|
2023-01-12 17:50:12 +00:00
|
|
|
[[bench]]
|
2024-03-15 21:49:33 +00:00
|
|
|
path = "bindings/rust/benches/kzg_benches.rs"
|
2023-01-12 17:50:12 +00:00
|
|
|
name = "kzg_benches"
|
2023-03-27 14:47:24 +00:00
|
|
|
harness = false
|