Skip to content

Commit

Permalink
Detail how to run locally-built nightly cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored May 14, 2018
1 parent e92a443 commit 4a9066a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ assert_that(
Alternatively to build and run a custom version of cargo simply run `cargo build`
and execute `target/debug/cargo`. Note that `+nightly`/`+stable` (and variants),
being [rustup](https://rustup.rs/) features, won't work when executing the locally
built cargo binary directly.
built cargo binary directly, you have to instead build with `cargo +nightly build`
and run with `rustup run` (e.g `rustup run nightly
<path-to-cargo>/target/debug/cargo <args>..`) (or set the `RUSTC` env var to point
to nightly rustc).

Because the test suite has `#![deny(warnings)]` at times you might find it
convenient to override this with `RUSTFLAGS`, for example
Expand Down

0 comments on commit 4a9066a

Please sign in to comment.