Registry / config / hocon
library0.9.0rscratesunverified

Reads HOCON configuration files.

# Cargo.toml [dependencies] hocon = "0.9.0"
INSTALL
IMPORT
SIG · HOCON
H
hocon
configrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HoconLoader
use hocon::HoconLoader;

Loads and reads a HOCON configuration file.

use hocon::HoconLoader; fn main() -> Result<(), Box<dyn std::error::Error>> { let config = HoconLoader::new().load_file("config.conf")?; let value: String = config["key"].as_string().unwrap(); println!("Value: {}", value); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
1
Resources
hocon — cargo add hocon · libregistry