#jsonnet #bindings #native #native-bindings #libjsonnet

sys jsonnet-sys

Native bindings to the libjsonnet library

3 releases (breaking)

0.17.0 Feb 1, 2021
0.6.0 May 5, 2018
0.5.0 Jan 3, 2017

#16 in #jsonnet

Download history 128/week @ 2024-07-22 135/week @ 2024-07-29 141/week @ 2024-08-05 106/week @ 2024-08-12 128/week @ 2024-08-19 292/week @ 2024-08-26 237/week @ 2024-09-02 104/week @ 2024-09-09 100/week @ 2024-09-16 233/week @ 2024-09-23 125/week @ 2024-09-30 72/week @ 2024-10-07 111/week @ 2024-10-14 187/week @ 2024-10-21 164/week @ 2024-10-28 255/week @ 2024-11-04

722 downloads per month
Used in 5 crates (via jsonnet-rs)

Apache-2.0

2MB
33K SLoC

Jsonnet 18K SLoC // 0.2% comments C++ 10K SLoC // 0.1% comments Python 1.5K SLoC // 0.2% comments C 681 SLoC // 0.1% comments JavaScript 592 SLoC // 0.1% comments Shell 511 SLoC // 0.3% comments Visual Studio Project 328 SLoC Bazel 270 SLoC // 0.1% comments Rust 193 SLoC Java 140 SLoC // 0.4% comments Visual Studio Solution 41 SLoC Bitbake 33 SLoC

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