swayfmt/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Based on `rustfmt`, `swayfmt` aims to be a transparent approach to formatting Sway code.
//!
//! `swayfmt` configurations can be adjusted with a `swayfmt.toml` config file declared at the root of a Sway project,
//! however the default formatter does not require the presence of one and any fields omitted will remain as default.

#![allow(dead_code)]
pub mod comments;
pub mod config;
mod constants;
mod error;
mod formatter;
mod items;
mod module;
pub mod parse;
mod utils;

pub use crate::formatter::{Format, Formatter};
pub use error::FormatterError;