Skip to main content

get_config_from_str

Function get_config_from_str 

pub fn get_config_from_str(
    text: &str,
) -> Result<LeptosOptions, LeptosConfigError>
Expand description

Loads LeptosOptions from a Cargo.toml text content with layered overrides. If an env var is specified, like LEPTOS_ENV, it will override a setting in the file.

§Errors

This function will return an error if either:

  • config section was not found;
  • failed to deserialize the config section.