mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
cargo: swap example (#22424)
Co-authored-by: Lena Pastwa <lena@lnps.me>
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
|
||||
`cargo {{[b|build]}} {{[-r|--release]}}`
|
||||
|
||||
- Run the built binary (will build it if it's not already built):
|
||||
|
||||
`cargo {{[r|run]}}`
|
||||
|
||||
- Build the Rust project in the current directory using the nightly compiler (requires `rustup`):
|
||||
|
||||
`cargo +nightly {{[b|build]}}`
|
||||
|
||||
- Build using a specific number of threads (default is the number of logical CPUs):
|
||||
|
||||
`cargo {{[b|build]}} {{[-j|--jobs]}} {{number_of_threads}}`
|
||||
|
||||
Reference in New Issue
Block a user