Skip to main content

install_catalog

Function install_catalog 

Source
pub fn install_catalog(provider: Box<dyn CatalogProvider>)
Expand description

Install the process-wide catalog provider.

The first call wins; later calls are no-ops (so a double install — e.g. a binary’s main plus a test helper — is harmless). Embedders should call this once, as early as possible, at binary / WASM startup, before any diagnostic’s docs URL is resolved.