[package]
edition = "2024"
rust-version = "1.97"
name = "fcpw"
version = "0.1.0"
build = false
exclude = [
".github/",
".gitignore",
"ci/",
"fuzz/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, variation-tolerant CBOR codec"
documentation = "https://docs.rs/fcpw"
readme = "README.md"
keywords = [
"cbor",
"serde",
"serialization",
"no-std",
"rfc-8949",
]
categories = [
"encoding",
"no-std",
"parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Elizafox/fcpw"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = []
default = [
"std",
"alloc",
"serde",
]
diagnostic = ["alloc"]
parallel = [
"std",
"alloc",
"serde",
"dep:rayon",
]
serde = [
"dep:serde",
"dep:serde_bytes",
"serde/alloc",
"alloc",
]
std = [
"alloc",
"serde?/std",
"simdutf8/std",
]
[lib]
name = "fcpw"
path = "src/lib.rs"
[[example]]
name = "api_parity"
path = "examples/api_parity.rs"
[[example]]
name = "profile"
path = "examples/profile.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "core_adversarial"
path = "tests/core_adversarial.rs"
[[test]]
name = "parity_followups"
path = "tests/parity_followups.rs"
[[test]]
name = "rfc8949"
path = "tests/rfc8949.rs"
[[test]]
name = "value_ergonomics"
path = "tests/value_ergonomics.rs"
[[test]]
name = "value_serde"
path = "tests/value_serde.rs"
[[bench]]
name = "codec"
path = "benches/codec.rs"
harness = false
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
optional = true
default-features = false
[dependencies.serde_bytes]
version = "0.11"
features = ["alloc"]
optional = true
default-features = false
[dependencies.simdutf8]
version = "0.1"
default-features = false
[dependencies.smoothutf8]
version = "0.2"
[dev-dependencies.cbor4ii]
version = "1.2"
features = [
"serde1",
"use_std",
]
[dev-dependencies.ciborium]
version = "0.2"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_cbor]
version = "0.11"
[dev-dependencies.serde_json]
version = "1"