Skip to content

Commit 13530af

Browse files
committed
Document supported-crate-types print request in unstable book
1 parent 0e7dbab commit 13530af

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# `print=supported-crate-types`
2+
3+
The tracking issue for this feature is: [#138640](https://github.com/rust-lang/rust/issues/138640).
4+
5+
------------------------
6+
7+
This option of the `--print` flag produces a list of crate types (delimited by newlines) supported for the given target.
8+
9+
The crate type strings correspond to the values accepted by the `--crate-type` flag.
10+
11+
Intended to be used like this:
12+
13+
```bash
14+
rustc --print=supported-crate-types -Zunstable-options --target=x86_64-unknown-linux-gnu
15+
```
16+
17+
Example output for `x86_64-unknown-linux-gnu`:
18+
19+
```text
20+
bin
21+
cdylib
22+
dylib
23+
lib
24+
proc-macro
25+
rlib
26+
staticlib
27+
```

0 commit comments

Comments
 (0)