Skip to main content

Module resolve

Module resolve 

Source
Expand description

Resolving a platform name to the dialect that renders it.

Every service crate (CLI, API, MCP, AI, pipeline) calls resolve_dialect_by_name instead of matching on names itself.

The accepted spellings are not written down here. Each dialect declares its own name and the aliases it answers to (DialectInfo::aliases), and this module reads them off whatever dialects are loaded — so a platform that arrives as a plugin, whether linked in or loaded from a shared library at run time, brings its spellings with it and needs no change to Razeri.

Enums§

ResolveError
Error returned when a platform name cannot be resolved to one dialect.

Functions§

accepted_names
Every spelling the loaded dialects answer to, sorted.
all_accepted_names
Every spelling the dialects linked into this program answer to, sorted.
resolve_dialect_by_name
Resolve a platform name to the dialect that renders it.
resolve_dialect_by_name_with_registry
Resolve using an explicit registry — the path a host takes when it has built its own, including one holding dialects loaded at run time.