Skip to content

Commit 037c4cd

Browse files
committed
Document supported-crate-types print request in rustc book
1 parent 1985bf1 commit 037c4cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/rustc/src/command-line-arguments.md

+3
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ The valid types of print values are:
292292
components alongside a Rust build that need this information, such as C compilers.
293293
This returns rustc's minimum supported deployment target if no `*_DEPLOYMENT_TARGET` variable
294294
is present in the environment, or otherwise returns the variable's parsed value.
295+
- `supported-crate-types` — Which crate types are supported for the given target.
296+
The output is a list of newline-delimited crate types (the values correspond to the
297+
crate type strings accepted by `--crate-type`).
295298

296299
A filepath may optionally be specified for each requested information kind, in
297300
the format `--print KIND=PATH`, just like for `--emit`. When a path is

0 commit comments

Comments
 (0)