pub fn analyze_crate(
crate_dir: &Path,
crate_name: &str,
) -> Result<ModuleGraph, AnalyzeError>Expand description
Analyze a crate and build its module dependency graph
ยงErrors
Returns AnalyzeError if the crate root is not found, if any source file
cannot be parsed, or if a module file cannot be resolved.