Expand description
Module resolution protocol.
@import("path") does not look up files itself. Instead, the evaluator
asks each registered ModuleResolver in order until one returns
Some(ModuleSource). The evaluator then parses and evaluates that
source once, caching the result by its ModuleSource::canonical_id.
Concrete resolver implementations (StdModuleResolver,
FilesystemModuleResolver, host-supplied resolvers) live in the
backend crate (relon-evaluator); the trait + payload type live here
so any backend implementing crate::Evaluator can share them.
Structs§
- Module
Source - The source text plus identity of a module produced by a
ModuleResolver.
Traits§
- Module
Resolver - A pluggable resolver that answers
@import("path")requests.