[package]
name = "waddling-errors"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Structured, secure-by-default diagnostic codes for distributed systems with no_std and role-based documentation"
documentation = "https://docs.rs/waddling-errors"
readme = "README.md"
keywords = ["errors", "diagnostics", "observability", "no-std", "distributed"]
categories = ["development-tools::debugging", "no-std", "embedded"]
[dependencies]
waddling-errors-hash = { version = "0.7", path = "../waddling-errors-hash", optional = true, default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
serde_json = { version = "1.0", optional = true }
paste = { version = "1.0", optional = true }
ctor = { version = "0.6", optional = true }
[dev-dependencies]
serde_json = "1.0"
[features]
default = []
std = []
runtime-hash = ["dep:waddling-errors-hash", "waddling-errors-hash?/std", "std"]
emoji = []
ansi-colors = []
metadata = ["dep:paste"]
doc-gen = ["std", "serde", "serde_json", "metadata", "runtime-hash"]
serde = ["dep:serde"]
auto-register = ["dep:ctor", "metadata", "std"]
[lib]
name = "waddling_errors"
path = "src/lib.rs"
[package.metadata.waddling-errors]
doc_formats = ["json", "html"]
doc_output_dir = "target/doc"
hash_algorithm = "xxHash64"
hash_seed = "Waddling"
[[example]]
name = "complete_system"
path = "examples/complete_system/main.rs"
required-features = ["metadata", "std", "runtime-hash"]