Skip to main content

Module functions

Module functions 

Source
Expand description

Module system functions: path parsing, resolution, graph analysis.

Structs§

ModulePathParseError
Error returned when a module path string cannot be parsed.

Functions§

build_module_graph
Build a ModuleGraph from all modules currently registered in registry.
detect_cycles
Detect all import cycles in graph.
direct_deps_of
Return the direct dependencies of module in graph.
parse_import_decl
Parse a single import line.
parse_imports
Extract all import declarations from a source file.
topological_sort
Produce a topological ordering of modules in graph so that every module appears after all its dependencies.
transitive_deps
Return all modules transitively reachable from module (excluding itself).