Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file<P: AsRef<Path>>(path: P) -> Result<Config, HoconError>
Expand description

Parse a HOCON file into a Config.

Inherits the process environment for ${VAR} resolution. Entries whose name or value is not valid UTF-8 are skipped rather than converted lossily, so such a variable resolves as if it were unset: ${?VAR} is undefined and ${VAR} is the usual unresolved-substitution error. A non-UTF-8 name is unreachable from UTF-8 HOCON source anyway.