Crates.io | ronfmt |
lib.rs | ronfmt |
version | 0.1.0 |
source | src |
created_at | 2018-10-25 08:00:27.357716 |
updated_at | 2018-10-25 08:00:27.357716 |
description | A simple tool for autoformatting RON files. |
homepage | https://github.com/Ristarg/ronfmt |
repository | https://github.com/Ristarg/ronfmt |
max_upload_size | |
id | 92559 |
size | 15,999 |
The tool is in prealpha state. Bugs may occur, leading to loss of data. The tool creates automatic backups of files it works on, but take precautions when using it. The tool does not support comments at this time. When formatting, they will be discarded. Only use it if you don't have/care for comments in your files.
(requires nightly rustc)
cargo install ronfmt
ronfmt file_to_format.ron
<source_file_name>.bak
in the same directory. Only the latest backup is kept. Add *.bak
to your .gitignore
if you would like to keep your repo clean.-d
flag to write the formatted output to the terminal instead of overwriting the source file-t <size>
(4 by default)-w <width>
(40 by default). This is a soft limit, so long or deeply-nested values may sometimes overrun it.