# 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.81" name = "alloy-primitives" version = "0.8.15" authors = ["Alloy Contributors"] build = false exclude = ["tests"] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Ethereum primitive types" homepage = "https://github.com/alloy-rs/core/tree/main/crates/primitives" readme = "README.md" keywords = [ "ethers", "primitives", "ethereum", "revm", "reth", ] categories = [ "no-std", "data-structures", "cryptography::cryptocurrencies", ] license = "MIT OR Apache-2.0" repository = "https://github.com/alloy-rs/core" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "alloy_primitives" path = "src/lib.rs" [[bench]] name = "primitives" path = "benches/primitives.rs" harness = false required-features = ["rand"] [dependencies.allocative] version = "0.3.2" optional = true default-features = false [dependencies.alloy-rlp] version = "0.3" optional = true default-features = false [dependencies.arbitrary] version = "1.3" optional = true [dependencies.bytes] version = "1" default-features = false [dependencies.cfg-if] version = "1.0.0" [dependencies.derive_arbitrary] version = "1.3" optional = true [dependencies.derive_more] version = "1.0" features = [ "as_ref", "add", "add_assign", "not", "deref", "deref_mut", "from", "from_str", "index", "index_mut", "into", "into_iterator", "display", "deref", ] default-features = false [dependencies.foldhash] version = "0.1" optional = true default-features = false [dependencies.getrandom] version = "0.2" optional = true [dependencies.hashbrown] version = "0.15" features = [ "default-hasher", "inline-more", ] optional = true default-features = false [dependencies.hex] version = "1.14" features = [ "alloc", "core-error", ] default-features = false package = "const-hex" [dependencies.hex-literal] version = "0.4" [dependencies.indexmap] version = "2.5" optional = true default-features = false [dependencies.itoa] version = "1" [dependencies.k256] version = "0.13" features = ["ecdsa"] optional = true default-features = false [dependencies.keccak-asm] version = "0.1.0" optional = true default-features = false [dependencies.paste] version = "1.0" [dependencies.postgres-types] version = "0.2.6" optional = true [dependencies.proptest] version = "1" optional = true [dependencies.proptest-derive] version = "0.5" optional = true [dependencies.rand] version = "0.8" features = ["getrandom"] optional = true default-features = false [dependencies.ruint] version = "1.12.3" features = ["alloc"] default-features = false [dependencies.rustc-hash] version = "2.0" optional = true default-features = false [dependencies.serde] version = "1.0" features = [ "alloc", "derive", ] optional = true default-features = false [dependencies.sha3] version = "0.10.8" optional = true default-features = false [dependencies.tiny-keccak] version = "2.0" features = ["keccak"] default-features = false [dev-dependencies.bcs] version = "0.1.6" [dev-dependencies.bincode] version = "1.3" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.serde_json] version = "1.0" features = ["alloc"] default-features = false [features] allocative = ["dep:allocative"] arbitrary = [ "std", "dep:arbitrary", "dep:derive_arbitrary", "dep:proptest", "dep:proptest-derive", "ruint/arbitrary", "ruint/proptest", "indexmap?/arbitrary", ] asm-keccak = ["dep:keccak-asm"] default = [ "std", "map", "map-foldhash", ] getrandom = ["dep:getrandom"] hex-compat = ["hex/hex"] k256 = ["dep:k256"] map = ["dep:hashbrown"] map-foldhash = [ "map", "dep:foldhash", ] map-fxhash = [ "map", "dep:rustc-hash", ] map-hashbrown = ["map"] map-indexmap = [ "map", "dep:indexmap", ] native-keccak = [] nightly = [ "hex/nightly", "ruint/nightly", "hashbrown?/nightly", "rustc-hash?/nightly", ] postgres = [ "std", "dep:postgres-types", "ruint/postgres", ] rand = [ "dep:rand", "getrandom", "ruint/rand", "rustc-hash?/rand", ] rlp = [ "dep:alloy-rlp", "ruint/alloy-rlp", ] serde = [ "dep:serde", "bytes/serde", "hex/serde", "ruint/serde", "hashbrown?/serde", "indexmap?/serde", "rand?/serde", ] sha3-keccak = ["dep:sha3"] std = [ "bytes/std", "hex/std", "ruint/std", "alloy-rlp?/std", "foldhash?/std", "indexmap?/std", "k256?/std", "keccak-asm?/std", "proptest?/std", "rand?/std", "rustc-hash?/std", "serde?/std", "sha3?/std", ] tiny-keccak = [] [lints.clippy] dbg-macro = "warn" manual-string-new = "warn" missing-const-for-fn = "warn" redundant-clone = "warn" uninlined-format-args = "warn" use-self = "warn" [lints.rust] missing-copy-implementations = "warn" missing-debug-implementations = "warn" missing-docs = "warn" redundant-lifetimes = "warn" rust-2018-idioms = "warn" unnameable-types = "warn" unreachable-pub = "warn" unused-must-use = "warn" [lints.rustdoc] all = "warn"