module_path_extractor 0.3.16

Derive a Rust module path from a macro call-site span
Documentation

module_path_extractor

module_path_extractor derives module paths and source info for proc-macro call sites.

Key APIs:

  • get_source_info()
  • find_module_path()
  • module_path_from_file()
  • module_path_to_file()

Install

[dependencies]
module_path_extractor = "0.3"

Intended Use

This crate is for proc-macro infrastructure where module resolution must be reconstructed from file paths and spans.

Docs