mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

This is to bring us into conformance with the [Rust crate ownership policy](https://forge.rust-lang.org/policies/crate-ownership.html). Items of note - `cargo-credential-1password` is declared as Experimental as it is intended for the community but I was unsure if we wanted to commit to full support for it. In my mind, the ideal thing to do would be to expatriate this to 1password. - `home` is declared as Internal despite its wide use within the ecosystem. - `cargo-credential` is declared as Intentional as its an API intended for the wider ecosystem and I didn't see a reason to declare it experimental. - `cargo-platform`, `cargo-util-schemas`, and `crates-io` are declared as Intentional as they are both used internally and intended for others to use for logic that integrates with cargo/registries. I wondered about these being Experimental or Internal instead.
34 lines
1.5 KiB
Markdown
34 lines
1.5 KiB
Markdown
# rustfix
|
|
|
|
[](https://crates.io/crates/rustfix)
|
|
[](https://docs.rs/rustfix)
|
|
|
|
Rustfix is a library defining useful structures that represent fix suggestions from rustc.
|
|
|
|
This is a low-level library. You pass it the JSON output from `rustc`, and you can then use it to apply suggestions to in-memory strings. This library doesn't execute commands, or read or write from the filesystem.
|
|
|
|
If you are looking for the [`cargo fix`] implementation, the core of it is located in [`cargo::ops::fix`].
|
|
|
|
> This crate is maintained by the Cargo team, primarily for use by Cargo and Rust compiler test suite
|
|
> and not intended for external use (except as a transitive dependency). This
|
|
> crate may make major changes to its APIs or be deprecated without warning.
|
|
|
|
[`cargo fix`]: https://doc.rust-lang.org/cargo/commands/cargo-fix.html
|
|
[`cargo::ops::fix`]: https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/fix.rs
|
|
|
|
## License
|
|
|
|
Licensed under either of
|
|
|
|
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
|
|
|
|
at your option.
|
|
|
|
### Contribution
|
|
|
|
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.
|