diff --git a/man/rustc.1 b/man/rustc.1 index 2484960cac6..392818e95a1 100644 --- a/man/rustc.1 +++ b/man/rustc.1 @@ -11,6 +11,9 @@ This program is a compiler for the Rust language, available at .SH OPTIONS +.TP +\fB\-\-crate-name NAME\fR +Specify the name of the crate being built .TP \fB\-\-crate-type=[bin|lib|dylib|rlib|staticlib]\fR Configure the flavor of rust crate that is generated (default `bin`) diff --git a/src/etc/zsh/_rust b/src/etc/zsh/_rust index 9c821117205..b423191d54a 100644 --- a/src/etc/zsh/_rust +++ b/src/etc/zsh/_rust @@ -9,10 +9,12 @@ _rustc_opts_switches=( -c'[Compile and assemble, but do not link]' --cfg'[Configure the compilation environment]' --crate-id'[Output the crate id and exit]' - --crate-file-name'[Output the file(s) that would be written if compilation continued and exit]' - --crate-name'[Output the crate name and exit]' - --dep-info'[Output dependency info to after compiling]' + --crate-file-name'[deprecated in favor of --print-file-name]' + --crate-name'[Specify the name of the crate being built]' --crate-type'[Specify the type of crate to crate]' + --debuginfo'[Emit DWARF debug info to the objects created: 0 = no debug info, 1 = line-tables only (for stacktraces and breakpoints), 2 = full debug info with variable and type information (same as -g)]' + --dep-info'[Output dependency info to after compiling]' + -g'[Equivalent to --debuginfo=2]' {-h,--help}'[Display this message]' -L'[Add a directory to the library search path]' --linker'[Program to use for linking instead of the default.]' @@ -29,6 +31,8 @@ _rustc_opts_switches=( --parse-only'[Parse only; do not compile, assemble, or link]' --passes'[Comma or space separated list of pass names to use]' --pretty'[Pretty-print the input instead of compiling]' + --print-crate-name'[Output the crate name and exit]' + --print-file-name'[Output the file(s) that would be written if compilation continued and exit]' --save-temps'[Write intermediate files (.bc, .opt.bc, .o) in addition to normal output]' --sysroot'[Override the system root]' --test'[Build a test harness]'