pklrust 0.9.0

Rust bindings for Apple Pkl configuration language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Basic `pkl!` macro usage — write PKL as Rust tokens.
use pklrust::pkl;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let value = pkl! {
        host = "localhost"
        port = 8080
        database {
            url = "postgres://localhost/mydb"
            maxConnections = 10
        }
    }?;

    println!("{value:#?}");
    Ok(())
}