]> git.proxmox.com Git - rustc.git/blame - src/vendor/rustfix/Readme.md
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / vendor / rustfix / Readme.md
CommitLineData
83c7162d
XL
1# rustfix
2
94b46f34 3The goal of this tool is to read and apply the suggestions made by rustc.
83c7162d 4
94b46f34
XL
5[![Build Status](https://travis-ci.org/rust-lang-nursery/rustfix.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/rustfix)
6[![Build status](https://ci.appveyor.com/api/projects/status/g8ljreo9ryu3s6ee/branch/master?svg=true)](https://ci.appveyor.com/project/rust-lang-libs/rustfix/branch/master)
83c7162d 7
94b46f34 8## Current status
83c7162d 9
94b46f34 10Currently, rustfix is split into two crates:
83c7162d 11
94b46f34
XL
12- `rustfix`, a library for consuming and applying suggestions in the format that `rustc` outputs
13- and `cargo-fix`, a binary that works as cargo subcommand and that end users will use to fix their code.
83c7162d 14
94b46f34 15The magic of rustfix is entirely dependent on the diagnostics implement in the Rust compiler (and external lints, like [clippy]).
83c7162d 16
94b46f34 17[clippy]: https://github.com/rust-lang-nursery/rust-clippy
83c7162d
XL
18
19## Installation
20
94b46f34 21To use the rustfix libary, add it to your `Cargo.toml`.
83c7162d 22
94b46f34 23To get the tool to automatically fix warnings in, run `cargo install cargo-fix`. This will give you `cargo fix`.
83c7162d
XL
24
25## License
26
27Licensed under either of
28
29- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
30- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
31
32at your option.
33
34### Contribution
35
36Unless you explicitly state otherwise, any contribution intentionally
37submitted for inclusion in the work by you, as defined in the Apache-2.0
38license, shall be dual licensed as above, without any additional terms or
39conditions.