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.
pull/1/head
blakehawkins 2022-09-08 00:11:59 +01:00 committed by GitHub
parent 25410d3fc0
commit e5521801d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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}}`