From 4a9066abad2c7f8a8490097d4a6a49520f54de66 Mon Sep 17 00:00:00 2001 From: Dale Wijnand <344610+dwijnand@users.noreply.github.com> Date: Mon, 14 May 2018 22:34:41 +0200 Subject: [PATCH] Detail how to run locally-built nightly cargo Documenting from https://gitter.im/rust-lang/cargo?at=5af6d407862c5e33e92bf2ca. --- ARCHITECTURE.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index cd09883ee..d296507fa 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -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 +/target/debug/cargo ..`) (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 -- 2.39.2