Module parser

Module parser 

Source
Expand description

Rust source file parsing using syn

Functionsยง

extract_mod_declarations
Extract all mod declarations from a parsed file
extract_use_paths
Extract all import paths from a use statement
extract_use_statements
Extract all use statements from a parsed file
get_path_attribute
Get the #[path = "..."] attribute value if present
parse_file
Parse a Rust source file
walk_use_tree
Walk a UseTree and extract all import paths as vectors of segments