Expand description
Access common paths and manipulate the filesystem
Structs§
Constants§
- TEST_ID 🔒
Statics§
Traits§
- Cargo
Path Ext - 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
root
s - 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
rustc
s sysroot