# 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"
name = "revm-precompile"
version = "5.0.0"
authors = ["Dragan Rakita <dragan0rakita@gmail.com>"]
description = "revm Precompiles - Ethereum compatible precompiled contracts"
readme = "README.md"
keywords = [
    "no_std",
    "ethereum",
    "evm",
    "revm",
    "precompiles",
]
license = "MIT"
repository = "https://github.com/bluealloy/revm"

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

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

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

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

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

[dependencies.once_cell]
version = "1.19"
features = ["alloc"]
default-features = false

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

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

[dependencies.secp256k1]
version = "0.28.2"
features = [
    "alloc",
    "recovery",
]
optional = true
default-features = false

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

[features]
asm-keccak = ["revm-primitives/asm-keccak"]
c-kzg = [
    "dep:c-kzg",
    "revm-primitives/c-kzg",
]
default = [
    "std",
    "c-kzg",
    "secp256k1",
    "portable",
]
negate-optimism-default-handler = ["revm-primitives/negate-optimism-default-handler"]
optimism = ["revm-primitives/optimism"]
optimism-default-handler = [
    "optimism",
    "revm-primitives/optimism-default-handler",
]
portable = [
    "revm-primitives/portable",
    "c-kzg?/portable",
]
secp256k1 = ["dep:secp256k1"]
std = [
    "revm-primitives/std",
    "k256/std",
    "once_cell/std",
    "ripemd/std",
    "sha2/std",
    "c-kzg?/std",
    "secp256k1?/std",
]
