@@ -82,7 +82,7 @@ exact filename can be tricky since you need to parse JSON output. The
82
82
that the artifacts are copied, so the originals are still in the ` target `
83
83
directory. Example:
84
84
85
- ```
85
+ ``` sh
86
86
cargo +nightly build --out-dir=out -Z unstable-options
87
87
```
88
88
@@ -105,7 +105,7 @@ while also passing it a `--target` option, as well as enabling
105
105
` -Zunstable-features --enable-per-target-ignores ` and passing along
106
106
information from ` .cargo/config.toml ` . See the rustc issue for more information.
107
107
108
- ```
108
+ ``` sh
109
109
cargo test --target foo -Zdoctest-xcompile
110
110
```
111
111
@@ -163,7 +163,7 @@ profiles from which the custom profile inherits are inherited too.
163
163
164
164
For example, using `cargo build` with `--profile` and the manifest from above:
165
165
166
- ```
166
+ ```sh
167
167
cargo +nightly build --profile release-lto -Z unstable-options
168
168
```
169
169
@@ -223,7 +223,7 @@ information about which commands would be run without actually executing
223
223
anything. This can be useful when integrating with another build tool.
224
224
Example:
225
225
226
- ```
226
+ ``` sh
227
227
cargo +nightly build --build-plan -Z unstable-options
228
228
```
229
229
@@ -296,7 +296,7 @@ need to have the source code for the standard library available, and at this
296
296
time the only supported method of doing so is to add the ` rust-src ` rust rustup
297
297
component:
298
298
299
- ```
299
+ ``` console
300
300
$ rustup component add rust-src --toolchain nightly
301
301
```
302
302
@@ -306,7 +306,7 @@ just forced to pass `--target` in one form or another.
306
306
307
307
Usage looks like:
308
308
309
- ```
309
+ ``` console
310
310
$ cargo new foo
311
311
$ cd foo
312
312
$ cargo +nightly run -Z build-std --target x86_64-unknown-linux-gnu
@@ -326,7 +326,7 @@ Using `-Z build-std` will implicitly compile the stable crates `core`, `std`,
326
326
` test ` crate. If you're working with an environment which does not support some
327
327
of these crates, then you can pass an argument to ` -Zbuild-std ` as well:
328
328
329
- ```
329
+ ``` console
330
330
$ cargo +nightly build -Z build-std=core,alloc
331
331
```
332
332
@@ -373,7 +373,7 @@ override the default list of features enabled.
373
373
The ` timings ` feature gives some information about how long each compilation
374
374
takes, and tracks concurrency information over time.
375
375
376
- ```
376
+ ``` sh
377
377
cargo +nightly build -Z timings
378
378
```
379
379
@@ -470,7 +470,7 @@ variables, which take precedence over config files.
470
470
471
471
Some examples of what it looks like using Bourne shell syntax:
472
472
473
- ``` sh
473
+ ``` console
474
474
# Most shells will require escaping.
475
475
cargo --config http.proxy=\"http://example.com\" …
476
476
0 commit comments