[package] name = "alloy-core" description = "Rust Ethereum core libraries" keywords = ["ethereum", "abi", "encoding", "evm", "solidity"] categories = ["no-std", "encoding", "cryptography::cryptocurrencies"] homepage = "https://github.com/alloy-rs/core/tree/main/crates/core" version.workspace = true edition.workspace = true rust-version.workspace = true authors.workspace = true license.workspace = true repository.workspace = true exclude.workspace = true [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [lints] workspace = true [dependencies] alloy-primitives.workspace = true alloy-dyn-abi = { workspace = true, optional = true } alloy-json-abi = { workspace = true, optional = true } alloy-sol-types = { workspace = true, optional = true } alloy-rlp = { workspace = true, optional = true } [features] default = [ "std", "alloy-primitives/default", "alloy-dyn-abi?/default", "alloy-json-abi?/default", "alloy-sol-types?/default", "alloy-rlp?/default", ] std = [ "alloy-primitives/std", "alloy-json-abi?/std", "alloy-dyn-abi?/std", "alloy-sol-types?/std", "alloy-rlp?/std", ] nightly = ["alloy-primitives/nightly"] dyn-abi = ["sol-types", "dep:alloy-dyn-abi"] json-abi = ["json", "serde", "dep:alloy-json-abi"] json = ["alloy-sol-types?/json"] sol-types = ["dep:alloy-sol-types"] asm-keccak = ["alloy-primitives/asm-keccak"] native-keccak = ["alloy-primitives/native-keccak"] sha3-keccak = ["alloy-primitives/sha3-keccak"] tiny-keccak = ["alloy-primitives/tiny-keccak"] map = ["alloy-primitives/map"] map-hashbrown = ["alloy-primitives/map-hashbrown"] map-indexmap = ["alloy-primitives/map-indexmap"] map-foldhash = ["alloy-primitives/map-foldhash"] map-fxhash = ["alloy-primitives/map-fxhash"] getrandom = ["alloy-primitives/getrandom"] rand = ["alloy-primitives/rand"] rlp = ["alloy-primitives/rlp", "dep:alloy-rlp"] serde = ["alloy-primitives/serde"] k256 = ["alloy-primitives/k256"] eip712 = ["alloy-sol-types?/eip712-serde", "alloy-dyn-abi?/eip712"] postgres = ["std", "alloy-primitives/postgres"] arbitrary = [ "std", "alloy-primitives/arbitrary", "alloy-sol-types?/arbitrary", "alloy-dyn-abi?/arbitrary", ]