scon-core
scon-core is the Rust implementation of SCON, a strict and deterministic
configuration format inspired by HOCON. It provides parsing, sequential
substitution resolution, explicit object and array spread, sandboxed file
includes, formatting, source analysis, and Serde conversion.
The Cargo package is named scon-core; its Rust library name is scon.
Installation
[]
= "0.1"
= { = "1", = ["derive"] }
Example
use Deserialize;
#
Use scon::parse_file or scon::from_file when the document may contain
include directives. scon::parse_str and scon::from_str intentionally do
not provide filesystem access.
SCON v0.1 uses a single sequential resolution model: substitutions are resolved immediately and forward references are rejected. See the SCON v0.1 specification for the complete grammar and semantics.
Compatibility
- Minimum supported Rust version: 1.85
- License: MIT