]> git.proxmox.com Git - cargo.git/commit
Import `cargo fix` directly in to Cargo
authorAlex Crichton <alex@alexcrichton.com>
Sat, 14 Jul 2018 01:49:26 +0000 (18:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 17 Jul 2018 04:58:58 +0000 (21:58 -0700)
commitb02ba3771e6b4b5f5a7cb1563a94724a720ae792
treecbaa27fb6b31f0006a200824df2bb0c1136242f9
parent5cddc4b8c686fb71bc0763be60984e3aebadedd8
Import `cargo fix` directly in to Cargo

This commit imports the `cargo fix` subcommand in rust-lang-nursery/rustfix
directly into Cargo as a subcommand. This should allow us to ease our
distribution story of `cargo fix` as we prepare for the upcoming 2018 edition
release.

It's been attempted here to make the code as idiomatic as possible for Cargo's
own codebase. Additionally all tests from cargo-fix were imported into Cargo's
test suite as well. After this lands and is published in nightly the `cargo-fix`
command in rust-lang-nursery/rustfix will likely be removed.

cc rust-lang/rust#52272
20 files changed:
Cargo.toml
src/bin/cargo/commands/fix.rs [new file with mode: 0644]
src/bin/cargo/commands/mod.rs
src/bin/cargo/main.rs
src/cargo/core/compiler/build_config.rs
src/cargo/core/compiler/compilation.rs
src/cargo/core/compiler/context/mod.rs
src/cargo/core/compiler/job_queue.rs
src/cargo/lib.rs
src/cargo/ops/cargo_new.rs
src/cargo/ops/fix.rs [new file with mode: 0644]
src/cargo/ops/mod.rs
src/cargo/util/diagnostic_server.rs [new file with mode: 0644]
src/cargo/util/lockserver.rs [new file with mode: 0644]
src/cargo/util/mod.rs
tests/testsuite/build.rs
tests/testsuite/cargotest/support/mod.rs
tests/testsuite/fix.rs [new file with mode: 0644]
tests/testsuite/generate_lockfile.rs
tests/testsuite/main.rs