tru 0.2.2

TOON reference implementation in Rust (JSON <-> TOON)
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "tru"
version = "0.2.2"
build = "build.rs"
exclude = [
    ".beads/",
    ".github/",
    "perf.data",
    "AGENTS.md",
    "EXISTING_TOON_RUST_STRUCTURE.md",
    "PLAN_TO_PORT_TOON_RUST_TO_RUST.md",
    "PROPOSED_ARCHITECTURE.md",
    "tests/golden_outputs/",
    "toon_illustration.webp",
    "storage.sqlite3",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TOON reference implementation in Rust (JSON <-> TOON)"
homepage = "https://github.com/Dicklesworthstone/toon_rust"
documentation = "https://docs.rs/tru"
readme = "README.md"
keywords = [
    "cli",
    "json",
    "serialization",
    "llm",
    "encoding",
]
categories = [
    "command-line-utilities",
    "encoding",
]
license = "MIT"
repository = "https://github.com/Dicklesworthstone/toon_rust"

[features]
async-stream = ["dep:asupersync"]
conformance = []
default = []
wasm = [
    "dep:wasm-bindgen",
    "dep:console_error_panic_hook",
    "dep:js-sys",
]

[lib]
name = "toon"
path = "src/lib.rs"

[[bin]]
name = "toon"
path = "src/main.rs"

[[test]]
name = "cli_conversion"
path = "tests/cli_conversion.rs"

[[test]]
name = "cli_integration"
path = "tests/cli_integration.rs"

[[test]]
name = "conformance"
path = "tests/conformance.rs"

[[test]]
name = "decode_fixtures"
path = "tests/decode_fixtures.rs"

[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"

[[test]]
name = "encode_fixtures"
path = "tests/encode_fixtures.rs"

[[test]]
name = "json_stream"
path = "tests/json_stream.rs"

[[bench]]
name = "toon_benchmark"
path = "benches/toon_benchmark.rs"
harness = false

[dependencies.anyhow]
version = "1.0.102"

[dependencies.asupersync]
version = "0.2.9"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5.60"
features = [
    "derive",
    "env",
]

[dependencies.clap_complete]
version = "4.5.66"

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"
features = ["preserve_order"]

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.22"
features = [
    "env-filter",
    "fmt",
    "json",
]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dev-dependencies.assert_cmd]
version = "2.1.2"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.insta]
version = "1.46.3"
features = [
    "json",
    "yaml",
]

[dev-dependencies.predicates]
version = "3.1.4"

[dev-dependencies.proptest]
version = "1.10.0"

[dev-dependencies.rand]
version = "0.10.0"

[dev-dependencies.tempfile]
version = "3.25.0"

[dev-dependencies.walkdir]
version = "2.5.0"

[build-dependencies.vergen-gix]
version = "9.1.0"
features = [
    "build",
    "cargo",
    "rustc",
]

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"

[profile.dev]
opt-level = 1

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true