Registry / config / hcl-rs

hcl-rs

JSON →
library0.19.7rscratesunverified

A parser and formatter for HashiCorp Configuration Language (HCL) with serde support.

# Cargo.toml [dependencies] hcl-rs = "0.19.7"
INSTALL
IMPORT
SIG · HCL-RS
H
hcl-rs
configrustv0.19.7
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.

from_str
use hcl::from_str;

Parses an HCL string into a JSON value.

use hcl::from_str; fn main() { let config: serde_json::Value = from_str(r#"key = "value""#).unwrap(); println!("{:?}", config); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.19.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
1
Resources
hcl-rs — cargo add hcl-rs · libregistry