3 releases

0.1.2 Nov 16, 2023
0.1.1 Nov 16, 2023
0.1.0 Nov 16, 2023

#125 in Value formatting

28 downloads per month

MIT/Apache

20KB
448 lines

rsn-fmt

CI Status Crates.io Docs.rs Documentation for main

Configuration

Configuration can be done through a rsnfmt.rsn or .rsnfmt.rsn config file in any parent directory or in the user's configuration:

Linux (and similar) Windows macOS
$XDG_CONFIG_HOME or $HOME/.config $HOME/Library/Application Support {FOLDERID_RoamingAppData}
/home/alice/.config /Users/Alice/Library/Application Support C:\Users\Alice\AppData\Roaming

The default values are:

{
    max_width: 60,
    // Normalize all comments to a specific format
    // Possible values: Block, Line, No
    normalize_comments: No,
    // Wrap comments: boolean
    wrap_comments: false,
    // Should formatting preserve empty lines
    // Possible values: One, All, None
    preserve_empty_lines: One,
    // Inherit parent/global configuration: boolean
    inherit: true
}

Dependencies

~4–14MB
~172K SLoC