[package]
edition = "2024"
rust-version = "1.92"
name = "substrate-data"
version = "0.3.1"
authors = ["F000NK"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One data model, text syntax, binary form, packed frames and schema system — for any program's files, saves and wire messages."
documentation = "https://docs.rs/substrate-data"
readme = "README.md"
keywords = [
"serialization",
"schema",
"binary",
"json5",
"format",
]
categories = [
"encoding",
"parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/F000NKKK/Substrate-Data"
[features]
json = ["dep:serde_json"]
simd-utf8 = ["dep:simdutf8"]
tokio = ["dep:tokio"]
toml = [
"dep:toml",
"dep:serde_spanned",
]
[lib]
name = "substrate_data"
path = "src/lib.rs"
[[example]]
name = "sizes"
path = "examples/sizes.rs"
[[test]]
name = "binary_forms"
path = "tests/binary_forms.rs"
[[test]]
name = "binary_malformed"
path = "tests/binary_malformed.rs"
[[test]]
name = "binary_steps"
path = "tests/binary_steps.rs"
[[test]]
name = "bus"
path = "tests/bus/main.rs"
[[test]]
name = "codecs"
path = "tests/codecs.rs"
[[test]]
name = "conformance"
path = "tests/conformance/main.rs"
[[test]]
name = "diagnostics"
path = "tests/diagnostics.rs"
[[test]]
name = "evolution"
path = "tests/evolution/main.rs"
[[test]]
name = "expand"
path = "tests/expand.rs"
[[test]]
name = "frame_forms"
path = "tests/frame_forms.rs"
[[test]]
name = "frame_shapes"
path = "tests/frame_shapes.rs"
[[test]]
name = "frame_views"
path = "tests/frame_views.rs"
[[test]]
name = "ids"
path = "tests/ids.rs"
[[test]]
name = "int_ranges"
path = "tests/int_ranges.rs"
[[test]]
name = "io_async"
path = "tests/io_async.rs"
[[test]]
name = "io_frames"
path = "tests/io_frames.rs"
[[test]]
name = "io_no_alloc"
path = "tests/io_no_alloc.rs"
[[test]]
name = "lane_backends"
path = "tests/lane_backends.rs"
[[test]]
name = "model"
path = "tests/model.rs"
[[test]]
name = "model_maps"
path = "tests/model_maps.rs"
[[test]]
name = "patch_forms"
path = "tests/patch_forms.rs"
[[test]]
name = "plain_types"
path = "tests/plain_types.rs"
[[test]]
name = "reader"
path = "tests/reader.rs"
[[test]]
name = "resolver"
path = "tests/resolver.rs"
[[test]]
name = "schema"
path = "tests/schema.rs"
[[test]]
name = "skipped_field"
path = "tests/skipped_field.rs"
[[test]]
name = "source_forms"
path = "tests/source_forms.rs"
[[test]]
name = "stream_forms"
path = "tests/stream_forms.rs"
[[test]]
name = "text_straight"
path = "tests/text_straight.rs"
[[test]]
name = "text_syntax"
path = "tests/text_syntax.rs"
[[test]]
name = "typed_names"
path = "tests/typed_names.rs"
[[test]]
name = "upgrade_v1"
path = "tests/upgrade_v1.rs"
[[test]]
name = "utf8_validation"
path = "tests/utf8_validation.rs"
[[test]]
name = "with_codecs"
path = "tests/with_codecs.rs"
[[test]]
name = "wrapped"
path = "tests/wrapped.rs"
[[bench]]
name = "binary"
path = "benches/binary.rs"
harness = false
[[bench]]
name = "compare"
path = "benches/compare.rs"
harness = false
[[bench]]
name = "data"
path = "benches/data.rs"
harness = false
[[bench]]
name = "frame"
path = "benches/frame.rs"
harness = false
[[bench]]
name = "iai"
path = "benches/iai.rs"
harness = false
[[bench]]
name = "io"
path = "benches/io.rs"
harness = false
[[bench]]
name = "io_async"
path = "benches/io_async.rs"
harness = false
required-features = ["tokio"]
[[bench]]
name = "lanes"
path = "benches/lanes.rs"
harness = false
[[bench]]
name = "messages"
path = "benches/messages.rs"
harness = false
[[bench]]
name = "model"
path = "benches/model.rs"
harness = false
[[bench]]
name = "names"
path = "benches/names.rs"
harness = false
[[bench]]
name = "reader"
path = "benches/reader.rs"
harness = false
[[bench]]
name = "scan"
path = "benches/scan.rs"
harness = false
[[bench]]
name = "schema"
path = "benches/schema.rs"
harness = false
[[bench]]
name = "text"
path = "benches/text.rs"
harness = false
[dependencies.base64]
version = "0.23"
[dependencies.bumpalo]
version = "3"
features = ["collections"]
[dependencies.memchr]
version = "=2.8.3"
features = ["std"]
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.serde_spanned]
version = "1"
optional = true
[dependencies.simdutf8]
version = "=0.1.5"
features = ["std"]
optional = true
[dependencies.substrate-data-derive]
version = "0.3.1"
[dependencies.tokio]
version = "1"
features = ["io-util"]
optional = true
default-features = false
[dependencies.toml]
version = "1"
features = [
"std",
"parse",
"preserve_order",
]
optional = true
default-features = false
[dependencies.zmij]
version = "1"
[dev-dependencies.bincode]
version = "2"
features = [
"std",
"serde",
]
default-features = false
[dev-dependencies.ciborium]
version = "0.2"
[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.iai-callgrind]
version = "0.16"
[dev-dependencies.postcard]
version = "1"
features = ["use-std"]
default-features = false
[dev-dependencies.rmp-serde]
version = "1"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_bytes]
version = "0.11"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.simdutf8]
version = "=0.1.5"
features = ["std"]
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"io-util",
"time",
]
default-features = false
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
excessive_nesting = "deny"
fn_params_excessive_bools = "deny"
large_types_passed_by_value = "warn"
let_underscore_must_use = "deny"
let_underscore_untyped = "warn"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
mod_module_files = "allow"
module_name_repetitions = "warn"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
self_named_module_files = "deny"
shadow_unrelated = "warn"
struct_excessive_bools = "deny"
todo = "deny"
too_many_arguments = "deny"
too_many_lines = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
wildcard_imports = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"