[package]
name = "multi-trait"
version = "1.0.3"
edition = "2024"
rust-version = "1.85"
authors = ["Dave Grantham <dwg@linuxprogrammer.org>"]
description = "Common traits for multiformats types"
repository = "https://github.com/cryptidtech/multi-trait.git"
readme = "README.md"
license = "Apache-2.0"
keywords = ["multiformats", "encoding", "multicodec", "multibase", "no_std"]
categories = ["encoding", "data-structures"]
[features]
default = ["std"]
std = ["unsigned-varint/std"]
[dependencies]
thiserror = { version = "2.0", default-features = false }
unsigned-varint = { version = "0.8", default-features = false }
[dev-dependencies]
proptest = "1.4"
criterion = { version = "0.5", features = ["html_reports"] }
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
[lints.rust]
unsafe_code = "deny"
[[bench]]
name = "encoding"
harness = false
path = "benches/encoding.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "custom_type"
path = "examples/custom_type.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[example]]
name = "no_std"
path = "examples/no_std.rs"