add partial_canonicalize helper function

This is useful for checking for potential overlap between paths that
have not been fully created yet.
This commit is contained in:
Olivia Lee 2025-04-06 17:43:12 -07:00
parent c03103a142
commit abb1b5681e
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
3 changed files with 125 additions and 1 deletions

14
Cargo.lock generated
View file

@ -962,6 +962,7 @@ dependencies = [
"serde_yaml",
"sha-1",
"strum",
"tempfile",
"thiserror 2.0.12",
"thread_local",
"tikv-jemallocator",
@ -3195,6 +3196,19 @@ dependencies = [
"syn",
]
[[package]]
name = "tempfile"
version = "3.19.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf"
dependencies = [
"fastrand",
"getrandom 0.3.2",
"once_cell",
"rustix",
"windows-sys 0.59.0",
]
[[package]]
name = "terminal_size"
version = "0.4.2"