[package]
edition = "2024"
rust-version = "1.88"
name = "zerodds-cdr"
version = "1.0.0-rc.1"
authors = ["ZeroDDS Contributors"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "XCDR1/XCDR2 encoder/decoder + KeyHash + PL_CDR1 helpers. Implements OMG XTypes 1.3 §7.4 wire format. Pure-Rust no_std + alloc."
homepage = "https://zerodds.org"
documentation = "https://docs.rs/zerodds-cdr"
readme = "README.md"
keywords = [
"dds",
"cdr",
"xcdr2",
"wire-format",
"no-std",
]
categories = [
"network-programming",
"encoding",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/zero-objects/zero-dds"
resolver = "2"
[features]
alloc = []
default = ["std"]
serde-bridge = [
"dep:serde",
"dep:serde_json",
"std",
]
std = ["alloc"]
[lib]
name = "zerodds_cdr"
path = "src/lib.rs"
[[test]]
name = "compliance_xcdr2"
path = "tests/compliance_xcdr2.rs"
[[test]]
name = "fuzz_smoke"
path = "tests/fuzz_smoke.rs"
[[test]]
name = "integration_topic"
path = "tests/integration_topic.rs"
[[test]]
name = "proptest_roundtrip"
path = "tests/proptest_roundtrip.rs"
[[test]]
name = "serde_bridge"
path = "tests/serde_bridge.rs"
[[test]]
name = "xcdr2_cross_vendor_fixtures"
path = "tests/xcdr2_cross_vendor_fixtures.rs"
[[test]]
name = "xcdr2_wire_vectors"
path = "tests/xcdr2_wire_vectors.rs"
[[bench]]
name = "encode_decode_hotpaths"
path = "benches/encode_decode_hotpaths.rs"
harness = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.zerodds-foundation]
version = "1.0.0-rc.1"
features = ["alloc"]
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.proptest]
version = "1.4"
features = ["std"]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[lints.clippy]
dbg_macro = "deny"
doc_overindented_list_items = "allow"
expect_used = "deny"
panic = "deny"
print_stderr = "warn"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1