Skip to main content

parse_string_with_options

Function parse_string_with_options 

Source
pub fn parse_string_with_options(
    input: &str,
    opts: ParseOptions,
) -> Result<Config, HoconError>
Expand description

Parse a HOCON string with explicit ParseOptions.

opts.resolve_substitutions = true (default): fused parse + resolve, same as parse. opts.resolve_substitutions = false: phase 1 only; returned Config may have is_resolved() = false. Use Config::resolve later.

This module-level function does not thread a package registry — for that, use [Parser::parse_with_options] (feature include-package).