# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.86"
name = "eip4844"
version = "0.10.0"
authors = ["Kevaundray Wedderburn <kev@the.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This crate provides an implementation of the cryptography needed for EIP-4844"
readme = false
license = "MIT"
repository = "https://github.com/crate-crypto/rust-eth-kzg"

[features]
multithreaded = ["maybe_rayon/multithreaded"]
singlethreaded = []
tracing = ["dep:tracing"]

[lib]
name = "eip4844"
path = "src/lib.rs"

[[example]]
name = "compute_kzg_proof"
path = "examples/compute_kzg_proof.rs"

[[test]]
name = "blob_to_kzg_commitment"
path = "tests/blob_to_kzg_commitment.rs"

[[test]]
name = "common"
path = "tests/common.rs"

[[test]]
name = "compute_blob_kzg_proof"
path = "tests/compute_blob_kzg_proof.rs"

[[test]]
name = "compute_kzg_proof"
path = "tests/compute_kzg_proof.rs"

[[test]]
name = "verify_blob_kzg_proof"
path = "tests/verify_blob_kzg_proof.rs"

[[test]]
name = "verify_blob_kzg_proof_batch"
path = "tests/verify_blob_kzg_proof_batch.rs"

[[test]]
name = "verify_kzg_proof"
path = "tests/verify_kzg_proof.rs"

[dependencies.bls12_381]
version = "0.10.0"
package = "ekzg-bls12-381"

[dependencies.hex]
version = "0.4.3"

[dependencies.itertools]
version = "0.14.0"
features = ["use_alloc"]
default-features = false

[dependencies.kzg_single_open]
version = "0.10.0"
package = "ekzg-single-open"

[dependencies.maybe_rayon]
version = "0.10.0"
package = "ekzg-maybe-rayon"

[dependencies.polynomial]
version = "0.10.0"
package = "ekzg-polynomial"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serialization]
version = "0.10.0"
package = "ekzg-serialization"

[dependencies.sha2]
version = "0.10.8"

[dependencies.tracing]
version = "0.1.41"
features = ["attributes"]
optional = true
default-features = false

[dependencies.trusted_setup]
version = "0.10.0"
package = "ekzg-trusted-setup"

[dev-dependencies.criterion]
version = "0.5.1"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.rand]
version = "0.8.4"

[dev-dependencies.serde_yaml]
version = "0.9.34"

[dev-dependencies.tracing-forest]
version = "0.1.6"
features = [
    "ansi",
    "smallvec",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.19"
features = [
    "std",
    "env-filter",
]

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
inline_always = "allow"
many_single_char_names = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
should_panic_without_expect = "allow"
similar_names = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1
