# 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.91.0"
name = "revm-precompile"
version = "36.0.1"
authors = ["Dragan Rakita <dragan0rakita@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Revm Precompiles - Ethereum compatible precompiled contracts"
readme = "README.md"
keywords = [
    "revm",
    "evm",
    "ethereum",
    "blockchain",
    "no_std",
]
license = "MIT"
repository = "https://github.com/bluealloy/revm"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
asm-keccak = ["primitives/asm-keccak"]
asm-sha2 = ["sha2/asm"]
blst = ["dep:blst"]
bn = ["dep:bn"]
c-kzg = ["dep:c-kzg"]
default = [
    "std",
    "secp256k1",
    "blst",
    "c-kzg",
    "portable",
]
gmp = ["dep:gmp-mpfr-sys"]
hashbrown = ["primitives/hashbrown"]
p256-aws-lc-rs = ["dep:aws-lc-rs"]
portable = [
    "c-kzg?/portable",
    "blst?/portable",
]
secp256k1 = ["dep:secp256k1"]
std = [
    "primitives/std",
    "context-interface/std",
    "k256/std",
    "ripemd/std",
    "sha2/std",
    "c-kzg?/std",
    "secp256k1?/std",
    "ark-bn254/std",
    "ark-bls12-381/std",
    "aurora-engine-modexp/std",
    "ark-ec/std",
    "ark-ff/std",
    "ark-serialize/std",
    "ark-std/std",
    "p256/std",
]

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

[[bench]]
name = "bench"
path = "bench/main.rs"
harness = false
required-features = ["secp256k1"]

[dependencies.ark-bls12-381]
version = "0.5"
features = ["curve"]
default-features = false

[dependencies.ark-bn254]
version = "0.5"
features = ["curve"]
default-features = false

[dependencies.ark-ec]
version = "0.5"
default-features = false

[dependencies.ark-ff]
version = "0.5"
features = ["asm"]
default-features = false

[dependencies.ark-serialize]
version = "0.5"
default-features = false

[dependencies.arrayref]
version = "0.3.6"

[dependencies.aurora-engine-modexp]
version = "1.2"
default-features = false

[dependencies.aws-lc-rs]
version = "1.16.2"
features = ["aws-lc-sys"]
optional = true
default-features = false

[dependencies.blst]
version = "0.3.15"
optional = true

[dependencies.bn]
version = "0.6"
optional = true
default-features = false
package = "substrate-bn"

[dependencies.c-kzg]
version = "2.1.7"
features = ["ethereum_kzg_settings"]
optional = true
default-features = false

[dependencies.cfg-if]
version = "1.0"
default-features = false

[dependencies.context-interface]
version = "19.0.1"
default-features = false
package = "revm-context-interface"

[dependencies.gmp-mpfr-sys]
version = "1.6"
optional = true
default-features = false

[dependencies.k256]
version = "0.13.4"
features = ["ecdsa"]
default-features = false

[dependencies.p256]
version = "0.13.2"
features = ["ecdsa"]
default-features = false

[dependencies.primitives]
version = "24.0.0"
default-features = false
package = "revm-primitives"

[dependencies.ripemd]
version = "0.1.3"
default-features = false

[dependencies.secp256k1]
version = "0.31.1"
features = [
    "alloc",
    "recovery",
    "rand",
    "global-context",
]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10.9"
default-features = false

[dev-dependencies.ark-std]
version = "0.5"
default-features = false

[dev-dependencies.criterion]
version = "4.2"
package = "codspeed-criterion-compat"

[dev-dependencies.p256]
version = "0.13.2"
features = ["ecdsa"]
default-features = false

[dev-dependencies.rand]
version = "0.9"
features = ["std"]

[dev-dependencies.rstest]
version = "0.26.0"

[lints.clippy]
missing_const_for_fn = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
all = "warn"
