Expand description
Tauq (τq) - Token-Efficient Data Notation
A schema-driven data format achieving 44-54% fewer tokens than JSON.
§Example
use tauq::compile_tauq;
let source = r#"
name Alice
age 30
"#;
let json = compile_tauq(source).unwrap();
assert_eq!(json["name"], "Alice");Re-exports§
pub use error::TauqError;pub use serde_support::from_bytes;pub use serde_support::from_file;pub use serde_support::from_str;pub use tauq::Delimiter;pub use tauq::Formatter;pub use tauq::Lexer;pub use tauq::Parser;pub use tauq::StreamingParser;pub use tauq::json_to_tauq;pub use tauq::json_to_tauq_optimized;pub use tauq::json_to_tauq_ultra;pub use tauq::minify_tauq;
Modules§
- c_
bindings - C bindings for Tauq
- error
- Error types for Tauq
- serde_
support - Serde integration (optional)
- tauq
- Core Tauq parser and formatter
- tbf
- Tauq Binary Format (TBF) - high-performance columnar storage Tauq Binary Format (TBF) - State-of-the-Art Binary Serialization
Constants§
- MAX_
INPUT_ SIZE - Maximum input size (100 MB) to prevent DoS via memory exhaustion
- MAX_
NESTING_ DEPTH - Maximum nesting depth for recursive structures
Functions§
- compile_
tauq - Parse Tauq source to JSON
- compile_
tauqq - Execute TauqQ (Tauq Query with transformations)
- compile_
tauqq_ safe - Execute TauqQ in safe mode (shell execution disabled) - RECOMMENDED
- compile_
tauqq_ unsafe - Execute TauqQ with shell execution enabled - USE WITH CAUTION
- format_
to_ tauq - Format JSON to Tauq syntax
- minify_
tauq_ str - Minify Tauq to single line
- print_
error_ with_ source - Print an error with source code context
- process_
tauqq - Process TauqQ directives without parsing (returns processed Tauq source)