draxl_printer/lib.rs
1#![forbid(unsafe_code)]
2//! Canonical printer for Draxl.
3//!
4//! This crate has two responsibilities:
5//!
6//! - canonicalize AST containers so ranked children and attached trivia are in
7//! deterministic order
8//! - render the canonical tree back into compact Draxl surface syntax
9//!
10//! Keeping those steps separate makes it easier to reason about whether a
11//! change affects semantic ordering, textual formatting, or both.
12
13mod canonical;
14mod render;
15
16pub use canonical::canonicalize_file;
17pub use render::print_file;