#jsonnet #json #bindings #build #libjsonnet #org #language

jsonnet-rs-docsrs-build

Bindings to libjsonnet (https://jsonnet.org/), a domain specific configuration language that helps you define JSON data

1 unstable release

new 0.18.0 Jan 12, 2025

#223 in Configuration

Download history 125/week @ 2025-01-08

125 downloads per month
Used in collagen

Apache-2.0

42KB
850 lines

rust-jsonnet

crates.io Version Badge docs.rs Doc Badge Build Status Badge

libjsonnet bindings for Rust

[dependencies]
jsonnet-rs = "0.6"

Building rust-jsonnet

Building jsonnet-sys requires gcc (via the cc Rust crate). libjsonnet is not typically available as an existing shared library, so jsonnet-sys builds and statically links its own copy.

$ git clone https://github.com/anguslees/rust-jsonnet
$ cd rust-jsonnet
$ cargo build

See also examples/jsonnet.rs for an almost-but-not-quite drop-in replacement for the official jsonnet executable implemented using this library.

License

rust-jsonnet is distributed under the terms of the Apache License (Version 2.0), the same as libjsonnet itself.

See LICENSE for details.

Dependencies

~2MB
~41K SLoC