Module paths

Source
Expand description

Access common paths and manipulate the filesystem

Structs§

TestIdGuard
See init_root

Constants§

TEST_ID 🔒

Statics§

CARGO_INTEGRATION_TEST_DIR 🔒
GLOBAL_ROOT 🔒

Traits§

CargoPathExt
Common path and file operations

Functions§

cargo_home
Path to the current test’s $CARGO_HOME
do_op 🔒
get_lib_extension
See get_lib_filename for more details
get_lib_filename
Get the filename for a library.
get_lib_prefix
See get_lib_filename for more details
global_root
Path to the parent directory of all test roots
global_root_legacy 🔒
This is used when running cargo is pre-CARGO_TARGET_TMPDIR TODO: Remove when CARGO_TARGET_TMPDIR grows old enough.
home
Path to the current test’s $HOME
init_root
For test harnesses like crate::cargo_test
root
Path to the test’s filesystem scratchpad
set_global_root 🔒
sysroot
Path to rustcs sysroot