We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
supported-crate-types
1 parent 0e7dbab commit 13530afCopy full SHA for 13530af
src/doc/unstable-book/src/compiler-flags/print-supported-crate-types.md
@@ -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