[package]
edition = "2024"
rust-version = "1.94"
name = "spate-json"
version = "0.1.0"
authors = ["Marcus Kainth <marcus@kainth.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JSON deserialization for the Spate framework: single-document, NDJSON, and top-level-array framings decoded into serde types or dynamically-typed values. Applications should depend on the `spate` facade crate with the `json` feature."
homepage = "https://spate.kainth.dev"
readme = "README.md"
keywords = [
"etl",
"pipeline",
"streaming",
"kafka",
"clickhouse",
]
categories = [
"asynchronous",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/spate-etl/spate"
[package.metadata.docs.rs]
all-features = true
[features]
arbitrary-precision = ["serde_json/arbitrary_precision"]
default = []
float-roundtrip = ["serde_json/float_roundtrip"]
raw-value = ["serde_json/raw_value"]
simd = ["dep:simd-json"]
[lib]
name = "spate_json"
path = "src/lib.rs"
[[test]]
name = "ndjson_pipeline"
path = "tests/ndjson_pipeline.rs"
[[bench]]
name = "decode"
path = "benches/decode.rs"
harness = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.simd-json]
version = "0.17.3"
optional = true
[dependencies.spate-core]
version = "=0.1.0"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tracing]
version = "0.1.44"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.metrics]
version = "0.24.2"
[dev-dependencies.metrics-exporter-prometheus]
version = "0.18"
default-features = false
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.serde_yaml]
version = "0.10"
package = "yaml_serde"
[dev-dependencies.spate-test]
version = "=0.1.0"
[dev-dependencies.tokio]
version = "1.52"
features = [
"macros",
"rt-multi-thread",
]
default-features = false
[lints.clippy]
dbg_macro = "warn"
print_stderr = "warn"
print_stdout = "warn"
undocumented_unsafe_blocks = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]