Module cargo_test_support::paths
source · Expand description
Access common paths and manipulate the filesystem
Structs§
- See
init_root
Constants§
- TEST_ID 🔒
Statics§
Traits§
- Common path and file operations
Functions§
- Path to the current test’s
$CARGO_HOME
- do_op 🔒
- See
get_lib_filename
for more details - Get the filename for a library.
- See
get_lib_filename
for more details - Path to the parent directory of all test
root
s - This is used when running cargo is pre-CARGO_TARGET_TMPDIR TODO: Remove when CARGO_TARGET_TMPDIR grows old enough.
- Path to the current test’s
$HOME
- For test harnesses like
crate::cargo_test
- Path to the test’s filesystem scratchpad
- Path to
rustc
s sysroot