Module paths

Module paths 

Source
Expand description

Access common paths and manipulate the filesystem

Structs§

TestIdGuard
See init_root

Traits§

CargoPathExt
Common path and file operations

Functions§

cargo_home
Path to the current test’s $CARGO_HOME
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
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
sysroot
Path to rustcs sysroot