Skip to main content

module_key_from_normalized

Function module_key_from_normalized 

Source
pub fn module_key_from_normalized(
    path: &str,
    module_roots: &[String],
    module_depth: usize,
) -> String
Expand description

Compute a module key from a normalized path.

Expected input format:

  • forward slashes only
  • no leading ./
  • no leading /