# 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-primitives"
version = "23.0.0"
authors = ["Dragan Rakita <dragan0rakita@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Revm primitives types"
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]
arbitrary = [
    "std",
    "alloy-primitives/arbitrary",
]
asm-keccak = ["alloy-primitives/asm-keccak"]
default = ["std"]
hashbrown = ["alloy-primitives/map-hashbrown"]
map-foldhash = ["alloy-primitives/map-foldhash"]
rand = ["alloy-primitives/rand"]
serde = [
    "dep:serde",
    "alloy-primitives/serde",
]
sha3-keccak = ["alloy-primitives/sha3-keccak"]
std = [
    "alloy-primitives/std",
    "serde?/std",
    "num_enum/std",
    "once_cell/std",
]

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

[dependencies.alloy-primitives]
version = "1.5.2"
features = [
    "map-indexmap",
    "rlp",
    "map",
]
default-features = false

[dependencies.num_enum]
version = "0.7"
default-features = false

[dependencies.once_cell]
version = "1.21"
features = [
    "alloc",
    "race",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
    "derive",
    "rc",
]
optional = true
default-features = false

[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"
