Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document any supported environment variables rustc honours #16330

Closed
Earnestly opened this issue Aug 7, 2014 · 6 comments · Fixed by #23527
Closed

Document any supported environment variables rustc honours #16330

Earnestly opened this issue Aug 7, 2014 · 6 comments · Fixed by #23527

Comments

@Earnestly
Copy link

I was looking for a collection of environment variables that rustc honours but was unable to find a definitive list. There are a few mentions of variables such as RUSTFLAGS, RUST_THREADS and RUST_BACKTRACE on google but none of them are documented in rustc(1)

Would it be possible to add these to the manual for future reference under an ENVIRONMENT section much like clang and gcc?

@steveklabnik
Copy link
Member

Yup, that'd be great.

@steveklabnik
Copy link
Member

Lots of these are duplicates, but

steve@computer:~/src/rust$ git grep RUST_  -- src | wc -l
108

@steveklabnik
Copy link
Member

This looks like an actual list of all of them right now:

RUST_TEST_TASKS
RUST_LOG 
RUST_BUILD_STAGE
RUST_MAX_CACHED_STACKS
RUST_MIN_STACK
RUST_PATH
DXR_RUST_TEMP_FOLDER
RUST_BACKTRACE
RUST_THREADS
RUST_TEST_STRESS
RUST_TEST_NOCAPTURE
RUST_BENCH
RUST_POISON_ON_FREE
RUST_NEWRT
RUST_TEST_SPAWN_UNICODE

@scott-ainsworth
Copy link

FYI: Just added #22334 (Document RUST_TEST_TASKS in the "book") in response to spurious test failures due to parallel text execution.

@steveklabnik
Copy link
Member

Full list as of now:

RUST_TEST_TASKS
RUST_TEST_NOCAPTURE
RUST_LOG
RUST_BUILD_STAGE
RUST_URL
RUST_PACKAGE_NAME
RUST_PACKAGE_NAME_AND_TRIPLE
RUST_TARBALL_NAME
RUST_LOCAL_INSTALL_DIR
RUST_LOCAL_INSTALL_SCRIPT
RUST_DOWNLOAD_DIR
RUST_LOCAL_TARBALL
RUST_PATH
RUST_REGION_GRAPH_NODE
RUST_REGION_GRAPH
RUST_TARGET_PATH
RUST_MIN_STACK
RUST_BACKTRACE
RUST_OBJECT
R_RUST_TEMP_FOLDER
RUST_THREADS
RUST_TEST_STRESS
RUST_ANDROID_DUMMY_H
RUST_BENCH
RUST_HOPEFULLY_THIS_DOESNT_EXIST
RUST_NEWRT
RUST_POISON_ON_FREE
RUST_TEST_PROC_SPAWN_UNICODE

@steveklabnik
Copy link
Member

(I gusess some of these are not actually env vars)

steveklabnik added a commit to steveklabnik/rust that referenced this issue Mar 19, 2015
Manishearth added a commit to Manishearth/rust that referenced this issue Mar 20, 2015
 Fixes rust-lang#16330

My troff is probably poor, so make sure that all looks okay.
bors added a commit to rust-lang-ci/rust that referenced this issue Jan 15, 2024
minor: Mark unresolved associated item diagnostic as experimental

Per rust-lang#16327 unresolved associated item has false positives.  Mark the diagnostic as experimental until this is more dependable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants