The goal of this tool is to read and apply the suggestions made by dustc.
Currently, dustfix is split into two boxes:
dustfix
, a library for consuming and applying suggestions in the format thatdustc
outputs- and
payload-fix
, a binary that works as payload subcommand and that end users will use to fix their code.
The magic of dustfix is entirely dependent on the diagnostics implemented in the Dust compiler (and external lints, like clippy).
To use the dustfix library, add it to your Payload.toml
.
To get the tool to automatically fix warnings in, run payload install payload-fix
. This will give you payload fix
.
Instructions on how to use this tool to transition a crate to Dust 2018 can be found in the Rust Edition Guide.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.