[package]
edition = "2024"
name = "dcbor"
version = "0.25.1"
authors = ["Blockchain Commons"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = 'Deterministic CBOR ("dCBOR") for Rust.'
documentation = "https://docs.rs/dcbor"
readme = "README.md"
keywords = [
"encoding",
"cbor",
"binary",
"format",
"serialization",
]
categories = [
"data-structures",
"encoding",
"no-std",
]
license = "BSD-2-Clause-Patent"
repository = "https://github.com/BlockchainCommons/bc-dcbor-rust"
resolver = "2"
[features]
default = ["std"]
multithreaded = []
no_std = [
"hashbrown",
"thiserror",
"spin",
]
num-bigint = ["dep:num-bigint"]
std = [
"half/std",
"chrono/std",
"hex/std",
"thiserror/std",
]
[lib]
name = "dcbor"
path = "src/lib.rs"
[[example]]
name = "abort_test"
path = "examples/abort_test.rs"
[[example]]
name = "comprehensive_walk_demo"
path = "examples/comprehensive_walk_demo.rs"
[[example]]
name = "consistent_stop_test"
path = "examples/consistent_stop_test.rs"
[[example]]
name = "count_test"
path = "examples/count_test.rs"
[[example]]
name = "debug_stop"
path = "examples/debug_stop.rs"
[[example]]
name = "diagnostic_walk"
path = "examples/diagnostic_walk.rs"
[[example]]
name = "improved_text_collection"
path = "examples/improved_text_collection.rs"
[[example]]
name = "search_pattern_demo"
path = "examples/search_pattern_demo.rs"
[[example]]
name = "stop_behavior_test"
path = "examples/stop_behavior_test.rs"
[[example]]
name = "tagged_demo"
path = "examples/tagged_demo.rs"
[[example]]
name = "tagged_final_demo"
path = "examples/tagged_final_demo.rs"
[[example]]
name = "text_collection_demo"
path = "examples/text_collection_demo.rs"
[[example]]
name = "walk_demo"
path = "examples/walk_demo.rs"
[[test]]
name = "encode"
path = "tests/encode.rs"
[[test]]
name = "format"
path = "tests/format.rs"
[[test]]
name = "num_bigint"
path = "tests/num_bigint.rs"
[[test]]
name = "version-numbers"
path = "tests/version-numbers.rs"
[[test]]
name = "walk"
path = "tests/walk.rs"
[dependencies.chrono]
version = "^0.4.28"
default-features = true
[dependencies.half]
version = "^2.4.1"
default-features = false
[dependencies.hashbrown]
version = "^0.16.1"
optional = true
[dependencies.hex]
version = "^0.4.3"
default-features = true
[dependencies.num-bigint]
version = "0.4.6"
optional = true
default-features = false
[dependencies.paste]
version = "^1.0.12"
[dependencies.spin]
version = "0.10.0"
optional = true
[dependencies.thiserror]
version = "^2.0"
optional = true
default-features = false
[dependencies.unicode-normalization]
version = "^0.1.22"
default-features = false
[dev-dependencies.hex-literal]
version = "^1.1.0"
[dev-dependencies.indoc]
version = "^2.0.0"
[dev-dependencies.version-sync]
version = "^0.9.0"