dprint-core
Rust crate for common dprint code.
Features:
formatting- Code to help build a code formatter in Rust (not required for creating a plugin).process- Code to help build a "process plugin"wasm- Code to help build a "wasm plugin" (recommended over process plugins)
Formatting Api
Use:
// create the arena after the data the print items borrow from
let arena = new;
let print_items = ...; // parsed out IR allocated in the arena (see example below)
let result = print;
Example
See overview.md.