15 releases

0.5.0-pre95 Aug 13, 2023
0.5.0-pre94 Jul 26, 2023
0.5.0-pre9 May 15, 2023
0.5.0-pre8 Apr 18, 2023
0.3.6 Apr 30, 2021

#139 in Memory management

Download history 1546/week @ 2023-12-12 766/week @ 2023-12-19 431/week @ 2023-12-26 2361/week @ 2024-01-02 3026/week @ 2024-01-09 4507/week @ 2024-01-16 2543/week @ 2024-01-23 4401/week @ 2024-01-30 3688/week @ 2024-02-06 3101/week @ 2024-02-13 3432/week @ 2024-02-20 3860/week @ 2024-02-27 4901/week @ 2024-03-05 3829/week @ 2024-03-12 3403/week @ 2024-03-19 1888/week @ 2024-03-26

14,597 downloads per month
Used in 13 crates (3 directly)

MIT license

432 lines



jrsonnet logo

release license opencollective


// Github sucks: I can't center those images the normal way: https://github.com/github/markup/issues/984 // [.text-center] // Interactive,470, alt=jrsonnet logo // // [.text-center] // -- // alt=release, link=https://github.com/CertainLach/jrsonnet/releases // alt=license, ./LICENSE // alt=opencollective, link=https://opencollective.com/jrsonnet // --

What is it

Jsonnet is a data templating language

This Rust crate implements both jsonnet library and an alternative jsonnet executable based on it. For more information see bindings,Bindings.



jrsonnet is packaged in nixpkgs and maintained by @CertainLach


nix-env -iA nixpkgs.jrsonnet


jrsonnet is packaged to brew and maintained by @messense


brew install jrsonnet

Windows/other linux distributions

You can get latest build of jrsonnet in releases.

Build from sources

jrsonnet should build on latest stable Rust version (probably on the oldest, but there is no MSRV policy provided)

Debug build will work too, but it is much slower than release


cargo build --release


There already are multiple implementations of this standard implemented in different languages:

This implementation shows performance better than all existing implementations. For more information see link:./docs/benchmarks.md[benchmarks]

Also, I wanted to experiment on new syntax features, and jrsonnet implements some of them. For more information see link:./docs/features.adoc[features]

In the end, it's always fun to implement something in Rust.

Bindings [[bindings]]


alt=crates.io, link=https://crates.io/crates/jrsonnet-evaluator alt=docs.rs, link=https://docs.rs/jrsonnet-evaluator

Jrsonnet is written in rust itself, so just add it as dependency


alt=crates.io, link=https://pypi.org/project/rjsonnet/

Bindings are created and maintained by @messense


Jrsonnet provides a standard libjsonnet.so shared library and should work as drop-in replacement for it


WASM bingings are also available, Java bindings (Both JNI and WASM compiled to .class) are in progress

See link:./bindings/[bindings] for more information.


~27K SLoC