mq-formatter 0.5.21

Code formatter for mq query language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! This crate provides an automatic code formatter to enforce consistent code style across [mq](https://github.com/harehare/mq) source files.
//! By applying standardized formatting rules, it helps developers maintain clean and readable [mq](https://github.com/harehare/mq) code.
//!
//! ## Examples
//!
//! ```
//! use mq_formatter::{Formatter, FormatterConfig};
//!
//! let config = FormatterConfig::default();
//! let mut formatter = Formatter::new(Some(config));
//! let data = "if(a):1 elif(b):2 else:3";
//! let formatted_data = formatter.format(data);
//!
//! assert_eq!(formatted_data.unwrap(), "if (a): 1 elif (b): 2 else: 3");
//! ```
mod formatter;

pub use formatter::{Formatter, FormatterConfig};