7 unstable releases (3 breaking)
|0.4.2||Jul 31, 2018|
|0.4.1||Jul 26, 2018|
|0.4.0||May 23, 2018|
|0.3.1||May 22, 2018|
|0.1.0||May 15, 2017|
#2 in Cargo plugins
29,907 downloads per month
The goal of this tool is to read and apply the suggestions made by rustc.
Currently, rustfix is split into two crates:
rustfix, a library for consuming and applying suggestions in the format that
cargo-fix, a binary that works as cargo subcommand and that end users will use to fix their code.
The magic of rustfix is entirely dependent on the diagnostics implement in the Rust compiler (and external lints, like clippy).
To use the rustfix library, add it to your
To get the tool to automatically fix warnings in, run
cargo install cargo-fix. This will give you
Instructions on how to use this tool to transition a crate to Rust 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.