rpkl
Language bindings to Pkl for Rust.
Requires the pkl binary to be available on your path. You can install pkl for your os using the steps from their docs: https://pkl-lang.org/main/current/pkl-cli/index.html#installation
Usage
ip = "127.0.0.1"
database {
username = "admin"
password = "secret"
}
let config: Config = value_from_config?;
Codegen
Mostly works, but still a WIP. If you want to try it out, you can enable the codegen feature.
let mut evaluator = new?;
let pkl_mod = evaluator.evaluate_module?;
pkl_mod.codegen?;