4 releases
Uses new Rust 2024
| new 0.1.4 | Jan 5, 2026 |
|---|---|
| 0.1.3 | Jan 5, 2026 |
| 0.1.2 | Jan 3, 2026 |
| 0.0.0 | May 24, 2025 |
#236 in Value formatting
Used in 5 crates
(3 directly)
1.5MB
36K
SLoC
Eure formatter.
This crate provides formatting functionality for Eure files, using an IR-based architecture inspired by Wadler's "A Prettier Printer" algorithm.
Architecture
The formatter uses a three-stage pipeline:
- Parse - Source text → CST (done externally via
eure-parol) - Build - CST → Doc IR (intermediate representation)
- Print - Doc IR → Formatted string
Example
use eure_fmt::{format, FormatConfig};
let input = "a={b=1,c=2}";
let config = FormatConfig::default();
let formatted = format(input, &config).unwrap();
eure-fmt
Formatter for Eure files.
This crate provides formatting capabilities for Eure files, ensuring consistent style and readability.
This crate is still under development and published for name reservation purpose.
Part of the Eure project - a minimalist, schema-friendly format with an algebraic data model that's compatible with JSON.
Dependencies
~4–6MB
~109K SLoC