[package]
edition = "2021"
name = "toon-format"
version = "0.4.3"
authors = [
"Johann Schopplich <hello@johannschopplich.com>",
"Shreyas K S <ks.shreyas0@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Token-Oriented Object Notation (TOON) - a token-efficient JSON alternative for LLM prompts"
homepage = "https://toonformat.dev"
documentation = "https://docs.rs/toon-format"
readme = "README.md"
keywords = [
"toon",
"format",
"llm",
"token",
"serialization",
]
categories = [
"encoding",
"parser-implementations",
]
license = "MIT"
repository = "https://github.com/toon-format/toon-rust"
[features]
cli = [
"dep:clap",
"dep:anyhow",
"dep:tiktoken-rs",
"dep:comfy-table",
"dep:ratatui",
"dep:crossterm",
"dep:tui-textarea",
"dep:arboard",
"dep:syntect",
"dep:unicode-width",
"dep:chrono",
]
default = ["cli"]
[lib]
name = "toon_format"
path = "src/lib.rs"
[[bin]]
name = "toon"
path = "src/cli/main.rs"
required-features = ["cli"]
[[example]]
name = "examples"
path = "examples/main.rs"
[[test]]
name = "arrays"
path = "tests/arrays.rs"
[[test]]
name = "delimiters"
path = "tests/delimiters.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "numeric"
path = "tests/numeric.rs"
[[test]]
name = "objects"
path = "tests/objects.rs"
[[test]]
name = "real_world"
path = "tests/real_world.rs"
[[test]]
name = "round_trip"
path = "tests/round_trip.rs"
[[test]]
name = "spec_fixtures"
path = "tests/spec_fixtures.rs"
harness = false
[[test]]
name = "unicode"
path = "tests/unicode.rs"
[dependencies.anyhow]
version = "1.0.86"
optional = true
[dependencies.arboard]
version = "3.4"
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
[dependencies.clap]
version = "4.5.11"
features = ["derive"]
optional = true
[dependencies.comfy-table]
version = "7.1"
optional = true
[dependencies.crossterm]
version = "0.28"
optional = true
[dependencies.indexmap]
version = "2.0"
[dependencies.ratatui]
version = "0.29"
optional = true
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
features = ["preserve_order"]
[dependencies.syntect]
version = "5.2"
optional = true
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tiktoken-rs]
version = "0.9.1"
optional = true
[dependencies.tui-textarea]
version = "0.7"
optional = true
[dependencies.unicode-width]
version = "0.2"
optional = true
[dev-dependencies.datatest-stable]
version = "0.3.3"
[dev-dependencies.glob]
version = "0.3"