rsn-fmt

Crates.iorsn-fmt
lib.rsrsn-fmt
version0.1.2
sourcesrc
created_at2023-11-16 01:34:00.655051
updated_at2023-11-16 09:11:09.795247
descriptionThe rsn formatter
homepage
repositoryhttps://github.com/ModProg/rsn-fmt
max_upload_size
id1037182
size57,482
Roland Fredenhagen (ModProg)

documentation

README

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
}
Commit count: 17

cargo fmt