Skip to main content

LoadedModules

Type Alias LoadedModules 

Source
pub type LoadedModules = Rc<RefCell<BTreeMap<PathBuf, String>>>;
Expand description

Every module the loader read, with the source it read.

This is what makes ruleset_hash cover the whole import graph rather than only the entry files. A rule that imports a shared helper has to invalidate when that helper changes, and the only component that knows the helper was involved is the loader.

Ordered, so the hash derived from it does not depend on load order — which varies with import structure and is not something a user changed.

Aliased Type§

pub struct LoadedModules { /* private fields */ }