Skip to main content

init_config

Function init_config 

Source
pub fn init_config(toml: &str) -> Result<Arc<ConfigModel>, ConfigError>
Expand description

Parse, validate, and install the Canic configuration.

This function is intentionally:

  • deterministic
  • synchronous
  • side-effect limited to internal config state

It is safe to call from both build-time validation and canister init / post-upgrade bootstrap paths.