nectar-postage 0.1.0

Postage stamp primitives for Ethereum Swarm
# 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 = "2024"
rust-version = "1.92"
name = "nectar-postage"
version = "0.1.0"
authors = ["Nexum Contributors"]
build = false
exclude = [
    "benches/",
    "tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Postage stamp primitives for Ethereum Swarm"
homepage = "https://nxm-rs.github.io/nectar"
documentation = "https://docs.rs/nectar-postage"
readme = "README.md"
keywords = [
    "swarm",
    "ethereum",
    "postage",
    "no_std",
]
categories = [
    "no-std",
    "data-structures",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/nxm-rs/nectar"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
arbitrary = [
    "dep:arbitrary",
    "nectar-primitives/arbitrary",
    "alloy-primitives/arbitrary",
]
default = ["std"]
parallel = [
    "dep:rayon",
    "std",
]
serde = [
    "dep:serde",
    "nectar-primitives/serde",
    "alloy-primitives/serde",
]
std = [
    "nectar-primitives/std",
    "alloy-primitives/std",
    "thiserror/std",
    "serde?/std",
]

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

[dependencies.alloy-primitives]
version = "1.6"
default-features = false

[dependencies.alloy-signer]
version = "2.0"
default-features = false

[dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = true

[dependencies.byteorder]
version = "1.5"
default-features = false

[dependencies.k256]
version = "0.13"
features = [
    "ecdsa",
    "precomputed-tables",
    "std",
]
default-features = false

[dependencies.nectar-primitives]
version = "0.1.0"

[dependencies.rayon]
version = "1.10"
optional = true

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

[dependencies.thiserror]
version = "2.0"
default-features = false

[dev-dependencies.alloy-primitives]
version = "1.6"
features = ["getrandom"]
default-features = false

[dev-dependencies.alloy-signer-local]
version = "2.0"
default-features = false

[dev-dependencies.arbitrary]
version = "1.4"
features = ["derive"]

[dev-dependencies.criterion]
version = "2.10.1"
package = "codspeed-criterion-compat"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.proptest-arbitrary-interop]
version = "0.1"

[dev-dependencies.rand]
version = "0.10"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
use-self = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing-debug-implementations = "warn"
missing-docs = "warn"
rust-2018-idioms = "deny"
unreachable-pub = "warn"
unused-must-use = "deny"