forked from toon-format/toon-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (62 loc) · 1.88 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (62 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[package]
name = "toon-format"
version = "0.4.1"
edition = "2021"
authors = [
"Johann Schopplich <hello@johannschopplich.com>",
"Shreyas K S <ks.shreyas0@gmail.com>",
]
license = "MIT"
description = "Token-Oriented Object Notation (TOON) - a token-efficient JSON alternative for LLM prompts"
repository = "https://github.com/toon-format/toon-rust"
homepage = "https://toonformat.dev"
documentation = "https://docs.rs/toon-format"
keywords = ["toon", "format", "llm", "token", "serialization"]
categories = ["encoding", "parser-implementations"]
readme = "README.md"
[[example]]
name = "examples"
path = "examples/main.rs"
[[bin]]
name = "toon"
path = "src/cli/main.rs"
required-features = ["cli"]
[features]
default = ["cli"]
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",
]
[dependencies]
serde = { version = "1.0.228", features = ["derive"] }
indexmap = "2.0"
serde_json = { version = "1.0.145", features = ["preserve_order"] }
thiserror = "2.0.17"
# CLI dependencies (gated behind "cli" feature)
clap = { version = "4.5.11", features = ["derive"], optional = true }
anyhow = { version = "1.0.86", optional = true }
tiktoken-rs = { version = "0.9.1", optional = true }
comfy-table = { version = "7.1", optional = true }
# TUI dependencies (gated behind "cli" feature)
ratatui = { version = "0.29", optional = true }
crossterm = { version = "0.28", optional = true }
tui-textarea = { version = "0.7", optional = true }
arboard = { version = "3.4", optional = true }
syntect = { version = "5.2", optional = true }
unicode-width = { version = "0.2", optional = true }
chrono = { version = "0.4", optional = true }
[dev-dependencies]
datatest-stable = "0.3.3"
glob = "0.3"
[[test]]
name = "spec_fixtures"
harness = false