Myd
Pronounced /mi:d/, like mead
Myd
is a rust library to create a representation of the
rust module tree as a usable datatype, and to resolve imports. It
is designed to be used by tools working with rust source code to
be less naïve about the module system.
Examples
Parse a package:
// Expensive operation: may take a few seconds
let mi = parse;
Work out where something is imported from:
let my_path: Path = parse_str;
let hashmap = mi.path
See the examples for more.