[package]
authors = ["Dragan Rakita <dragan0rakita@gmail.com>"]
description = "revm Precompiles - Ethereum compatible precompiled contracts"
edition = "2021"
keywords = ["no_std", "ethereum", "evm", "revm", "precompiles"]
license = "MIT"
name = "revm-precompile"
repository = "https://github.com/bluealloy/revm"
version = "15.0.0"
readme = "../../README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unreachable_pub = "warn"
unused_must_use = "deny"
rust_2018_idioms = "deny"
[lints.rustdoc]
all = "warn"
[dependencies]
revm-primitives = { path = "../primitives", version = "14.0.0", default-features = false }
once_cell = { version = "1.19", default-features = false, features = ["alloc"] }
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"] }
secp256k1 = { version = ">=0.28, <=0.29", default-features = false, features = [
"alloc",
"recovery",
"rand",
"global-context",
], optional = true }
sha2 = { version = "0.10", default-features = false }
ripemd = { version = "0.1", default-features = false }
aurora-engine-modexp = { version = "1.1", default-features = false }
bn = { package = "substrate-bn", version = "0.6", default-features = false }
c-kzg = { version = "1.0.3", default-features = false, optional = true, features = [
"ethereum_kzg_settings",
] }
kzg-rs = { version = "0.2.3", default-features = false, optional = true }
blst = { version = "0.3.13", optional = true }
p256 = { version = "0.13.2", optional = true, default-features = false, features = [
"ecdsa",
] }
cfg-if = { version = "1.0", default-features = false }
[dev-dependencies]
criterion = "0.5"
rand = { version = "0.8", features = ["std"] }
eyre = "0.6.12"
rstest = "0.22.0"
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
[features]
default = ["std", "c-kzg", "secp256k1", "portable", "blst"]
std = [
"revm-primitives/std",
"k256/std",
"once_cell/std",
"ripemd/std",
"sha2/std",
"c-kzg?/std",
"secp256k1?/std",
]
hashbrown = ["revm-primitives/hashbrown"]
asm-keccak = ["revm-primitives/asm-keccak"]
optimism = ["revm-primitives/optimism", "secp256r1"]
optimism-default-handler = [
"optimism",
"revm-primitives/optimism-default-handler",
]
negate-optimism-default-handler = [
"revm-primitives/negate-optimism-default-handler",
]
secp256r1 = ["dep:p256"]
c-kzg = ["dep:c-kzg", "revm-primitives/c-kzg"]
kzg-rs = ["dep:kzg-rs", "revm-primitives/kzg-rs"]
portable = ["revm-primitives/portable", "c-kzg?/portable"]
secp256k1 = ["dep:secp256k1"]
blst = ["dep:blst"]
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false