[package]
edition = "2021"
rust-version = "1.94.1"
name = "alloy-network-primitives"
version = "2.2.0"
authors = ["Alloy Contributors"]
build = false
exclude = [
"benches/",
"tests/",
"testdata/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Primitive types for Alloy network abstraction"
homepage = "https://github.com/alloy-rs/alloy"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/alloy-rs/alloy"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"-Zunstable-options",
"--generate-link-to-definition",
"--show-type-layout",
]
[features]
default = ["std"]
serde = [
"dep:serde",
"alloy-consensus/serde",
"alloy-eips/serde",
"alloy-primitives/serde",
]
std = [
"alloy-primitives/std",
"alloy-consensus/std",
"alloy-eips/std",
"alloy-serde/std",
"serde/std",
]
[lib]
name = "alloy_network_primitives"
path = "src/lib.rs"
[dependencies.alloy-consensus]
version = "2.2.0"
features = ["serde"]
default-features = false
[dependencies.alloy-eips]
version = "2.2.0"
default-features = false
[dependencies.alloy-primitives]
version = "1.6.0"
default-features = false
[dependencies.alloy-serde]
version = "2.2.0"
default-features = false
[dependencies.serde]
version = "1.0.226"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dev-dependencies]
[lints.clippy]
large-enum-variant = "allow"
missing-const-for-fn = "warn"
redundant-clone = "warn"
result-large-err = "allow"
use-self = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing-debug-implementations = "warn"
missing-docs = "warn"
rust-2018-idioms = "deny"
unnameable-types = "warn"
unreachable-pub = "warn"
unused-must-use = "deny"
[lints.rustdoc]
all = "warn"