malt-index 0.4.0

Native index of the MATLAB path (functions, classes, packages, class folders): the Rust core of malt
Documentation

malt-index

A native index of the MATLAB path: the functions, classes, scripts, live scripts, packages (+pkg), class folders (@cls), plain folders and private/ folders that MATLAB resolves names against. It is the Rust core of malt. The linter uses it when [index] enabled = true or --index is given, and the Python module malt-index wraps it for documentation generators.

The crate does not depend on the linter crates.

Use

use malt_index::{Index, ParserConfig};

let index = Index::scan(&[PathBuf::from("src")], &ParserConfig::default());
let entity = index.get("pkg.sub.fn")?;
let chain = index.mro(&class)?;

Index::scan lists the folders and reads no file. Files are parsed on first use and cached, and an Index is Send + Sync.

Documentation

The API tour, the rules for how MATLAB is read, and the development guide are in the malt documentation:

The item documentation is on docs.rs.

License

MIT. See the repository for the source and to report issues.