[package]
edition = "2024"
rust-version = "1.92"
name = "nectar-postage-usage"
version = "0.2.0"
authors = ["Nexum Contributors"]
build = false
exclude = [
"benches/",
"tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-hosted postage batch utilization snapshots for Ethereum Swarm"
homepage = "https://nxm-rs.github.io/nectar"
documentation = "https://docs.rs/nectar-postage-usage"
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]
client = [
"std",
"seal",
"dep:auto_impl",
"dep:web-time",
]
default = ["std"]
issuer = ["std"]
seal = [
"dep:alloy-signer",
"std",
]
std = [
"nectar-postage/std",
"nectar-postage-issuer/std",
"alloy-primitives/std",
"thiserror/std",
]
[lib]
name = "nectar_postage_usage"
path = "src/lib.rs"
[[example]]
name = "roam_between_machines"
path = "examples/roam_between_machines.rs"
required-features = [
"client",
"seal",
]
[dependencies.alloy-primitives]
version = "1.6"
default-features = false
[dependencies.alloy-signer]
version = "2.0"
optional = true
default-features = false
[dependencies.auto_impl]
version = "1.3"
optional = true
[dependencies.bytes]
version = "1.11"
default-features = false
[dependencies.nectar-postage]
version = "0.2.0"
[dependencies.nectar-postage-issuer]
version = "0.2.0"
[dependencies.nectar-primitives]
version = "0.2.0"
[dependencies.thiserror]
version = "2.0"
default-features = false
[dependencies.web-time]
version = "1.1"
optional = true
[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.tokio]
version = "1"
features = [
"rt",
"macros",
"rt",
"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"