Rustfmt Plugin
Wrapper plugin that formats Rust code via rustfmt.
Install and Setup
In .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.rs
file extensions are matched in an"includes"
pattern. - Add a
"rustfmt"
configuration property if desired.
{
// ...etc...
"rustfmt": {
"brace_style": "AlwaysNextLine"
},
"plugins": [
// ...etc...
"https://plugins.dprint.dev/rustfmt-x.x.x.wasm"
]
}
Configuration
See documentation here.