1 unstable release
| 0.1.0 | Nov 28, 2025 |
|---|
#37 in #toon
Used in 2 crates
(via toon-validate-cli)
37KB
899 lines
toon-validate
Command-line TOON Validator for structure validation, token analysis, and file profiling.
The tval binary provides fast validation and analysis of TOON and JSON files.
Requirements
- Rust toolchain (stable)
Build
cargo build --release
Binary: target/release/tval
Commands
tval analyze <file> # analyze single file
tval profile <dir> # analyze directory
tval check <file> # validate structure
Flags
--in=toon|json- input format (default: auto)--json- JSON output--ext=<list>- file extensions for profile (default: .toon,.json)
Exit codes
- 0: success
- 1: IO/parse error
- 2: validation error
Tests
cargo test
./test.sh
Dependencies
~0.4–1.3MB
~28K SLoC