toon-validate

Crates.iotoon-validate
lib.rstoon-validate
version0.1.0
created_at2025-11-28 17:21:39.621125+00
updated_at2025-11-28 17:21:39.621125+00
descriptionCommand-line TOON validator for structure validation, token analysis, and file profiling
homepagehttps://github.com/eznj/toon-validate
repositoryhttps://github.com/eznj/toon-validate
max_upload_size
id1955758
size20,899
(eznj)

documentation

https://docs.rs/toon-validate

README

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
Commit count: 0

cargo fmt