X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=man%2Frustc.1;h=b15829db431dfef89f5d7b6a4fb6217c98874b3b;hb=8f6c879d2af6834a4f7a8b41ad335e52fe714e6d;hp=f37e66001909305143f627359a9f392adbbfeb6d;hpb=436a874db29e9a2dde1945e2b80269612d2b0d5d;p=rust.git diff --git a/man/rustc.1 b/man/rustc.1 index f37e6600190..b15829db431 100644 --- a/man/rustc.1 +++ b/man/rustc.1 @@ -242,6 +242,28 @@ full debug info with variable and type information. \fBopt\-level\fR=\fIVAL\fR Optimize with possible levels 0\[en]3 +.SH ENVIRONMENT + +Some of these affect the output of the compiler, while others affect programs +which link to the standard library. + +.TP +\fBRUST_TEST_THREADS\fR +The test framework Rust provides executes tests in parallel. This variable sets +the maximum number of threads used for this purpose. + +.TP +\fBRUST_TEST_NOCAPTURE\fR +A synonym for the --nocapture flag. + +.TP +\fBRUST_MIN_STACK\fR +Sets the minimum stack size for new threads. + +.TP +\fBRUST_BACKTRACE\fR +If set, produces a backtrace in the output of a program which panics. + .SH "EXAMPLES" To build an executable from a source file with a main function: $ rustc \-o hello hello.rs