commonware-codec 2026.2.0

Serialize structured data.
Documentation
[package]
name = "commonware-codec"
edition.workspace = true
publish = true
version.workspace = true
license.workspace = true
description = "Serialize structured data."
readme = "README.md"
homepage.workspace = true
repository = "https://github.com/commonwarexyz/monorepo/tree/main/codec"
documentation = "https://docs.rs/commonware-codec"

[lints]
workspace = true

[features]
default = [ "std" ]
std = [
	"bytes/std",
	"commonware-macros/std",
	"rand?/std",
	"rand_chacha?/std",
	"thiserror/std",
]
arbitrary = [
	"dep:arbitrary",
	"dep:commonware-conformance",
	"dep:rand",
	"dep:rand_chacha",
	"std",
]

[dependencies]
arbitrary = { workspace = true, optional = true }
bytes.workspace = true
cfg-if.workspace = true
commonware-conformance = { workspace = true, optional = true }
commonware-macros.workspace = true
paste.workspace = true
rand = { workspace = true, optional = true }
rand_chacha = { workspace = true, optional = true }
thiserror.workspace = true

[dev-dependencies]
proptest.workspace = true