nix-env -iA nixpkgs.jrsonnet
difftreelog
Install
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
Why?
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 benchmarks
Also, I wanted to experiment on new syntax features, and jrsonnet implements some of them. For more information see features
In the end, it’s always fun to implement something in Rust.
Bindings
JavaScript/TypeScript (WASM)
WASM bindings are published to JSR as @jrsonnet/jrsonnet.
deno add jsr:@jrsonnet/jrsonnet
C/C++
Jrsonnet provides a standard libjsonnet.so shared library and should work as drop-in replacement for it