bynk_fmt/lib.rs
1//! `bynk-fmt` — the Bynk formatter.
2//!
3//! A real leaf crate: the formatter is an AST-walk over the `bynk-syntax`
4//! types, so it depends on `bynk-syntax` only and never links the compiler
5//! (resolver/checker/emitter). Slice 2 of the crate-decomposition track moved
6//! the implementation down here from `bynkc::fmt` and re-pointed it onto the
7//! `bynk-syntax` leaf, turning the former cosmetic façade into the home of the
8//! formatter itself. `bynkc` now depends on this crate and re-exports it as
9//! `bynkc::fmt` for its own `bynkc fmt` command.
10
11mod fmt;
12
13pub use fmt::{FormatError, FormatOptions, IndentStyle, format_source};