From e5521801d6465f09c9e99fba198619349851ecbf Mon Sep 17 00:00:00 2001 From: blakehawkins Date: Thu, 8 Sep 2022 00:11:59 +0100 Subject: [PATCH] cargo: add +nightly example (#8475) The `+nightly` syntax is somewhat unusual and easy to forget. It composes nicely with many other cargo commands. None of the others have a +nightly example as yet. --- pages/common/cargo.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/cargo.md b/pages/common/cargo.md index f868db097..02e88bfa9 100644 --- a/pages/common/cargo.md +++ b/pages/common/cargo.md @@ -28,6 +28,10 @@ `cargo build` +- Build the rust project in the current directory using the nightly compiler: + +`cargo +nightly build` + - Build using a specific number of threads (default is the number of CPU cores): `cargo build --jobs {{number_of_threads}}`