Cargo Features
[dependencies]
c-kzg = { version = "1.0.2", default-features = false, features = ["std", "serde", "generate-bindings", "portable", "no-threads"] }
- default = portable, std
-
These default features are set whenever
c-kzg
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of hex, libc, and optional serde
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - serde
-
Enables serde
- generate-bindings build
-
Enables bindgen
- portable default
-
This is a standalone feature so that crates that disable default features can enable blst/portable without having to add it as a dependency
- no-threads
-
BLST Compilation:
Suppress multi-threading.
Engaged on wasm32 target architecture automatically.Enables no-threads of blst