Expand description
Access common paths and manipulate the filesystem
Structs§
Constants§
- TEST_ID 🔒
Statics§
Traits§
- Cargo
Path Ext - Common path and file operations
Functions§
- build_
dir_ 🔒ignored_ path_ patterns - The paths to ignore when
CargoPathExt::assert_build_dir_layoutis called - cargo_
home - Path to the current test’s
$CARGO_HOME - do_op 🔒
- get_
lib_ extension - See
get_lib_filenamefor more details - get_
lib_ filename - Get the filename for a library.
- get_
lib_ prefix - See
get_lib_filenamefor 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_TMPDIRgrows 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