Skip to content

Commit

Permalink
Document environment variables
Browse files Browse the repository at this point in the history
Fixes #16330
  • Loading branch information
steveklabnik committed Mar 19, 2015
1 parent 08dd30d commit b4a72a4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions man/rustc.1
Expand Up @@ -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 VARIABLES

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
Expand Down

0 comments on commit b4a72a4

Please sign in to comment.