Skip to main content

apply_crate_remaps

Function apply_crate_remaps 

Source
pub fn apply_crate_remaps(path: &str, remaps: &[(&str, &str)]) -> String
Expand description

Apply source→override crate remaps to a fully-qualified Rust path.

If the leading crate segment of path (the part before the first ::) matches any entry in remaps, that segment is replaced with the override. Returns path unchanged when no remap applies.