git.delta.rocks / jrsonnet / refs/commits / ea82da9c8100

difftreelog

source

README.md2.6 KiBsourcehistory
1# jrsonnet23[![release](https://img.shields.io/github/v/tag/CertainLach/jrsonnet?color=%23fb4934&label=latest%20release&style=for-the-badge)](https://github.com/CertainLach/jrsonnet/releases)4[![license](https://img.shields.io/github/license/CertainLach/jrsonnet?color=%2383a598&label=license&style=for-the-badge)](/LICENSE)5[![opencollective](https://img.shields.io/opencollective/all/jrsonnet?color=%238ec07c&style=for-the-badge)](https://opencollective.com/jrsonnet)67## What is it89[Jsonnet](https://jsonnet.org/) is a data templating language1011This Rust crate implements both jsonnet library and an alternative `jsonnet` executable based on it. For more information see [bindings](#Bindings).1213## Install1415### NixOS1617jrsonnet is packaged in nixpkgs and maintained by @CertainLach1819```sh20nix-env -iA nixpkgs.jrsonnet21```2223### MacOS2425jrsonnet is packaged to brew and maintained by @messense2627```sh28brew install jrsonnet29```3031### Windows/other linux distributions3233You can get latest build of jrsonnet in [releases](https://github.com/CertainLach/jrsonnet/releases)3435### Build from sources3637jrsonnet should build on latest stable Rust version (probally on olders, but there is no MSRV policy provided)3839Debug build will work too, but it is much slower than release4041```42cargo build --release43```4445## Why?4647There already are multiple implementations of this standard implemented in different languages: [C++](https://github.com/google/jsonnet), [Go](https://github.com/google/go-jsonnet/), [Scala](https://github.com/databricks/sjsonnet).4849This implementation shows performance better than all existing implementations. For more information see [benchmarks](./docs/benchmarks.md).5051Also, I wanted to experiment on new syntax features, and jrsonnet implements some of them. For more information see [features](./docs/features.md)5253In the end, it's always fun to implement something in Rust.5455## Bindings5657### Rust5859[![crates.io](https://img.shields.io/crates/v/jrsonnet-evaluator)](https://crates.io/crates/jrsonnet-evaluator)60[![docs.rs](https://docs.rs/jrsonnet-evaluator/badge.svg)](https://docs.rs/jrsonnet-evaluator)6162Jrsonnet is written in rust itself, so just add it as dependency6364### Python6566[![crates.io](https://img.shields.io/pypi/v/rjsonnet)](https://pypi.org/project/rjsonnet/)6768Bindings are created and maintained by @messense6970### C/C++7172Jrsonnet provides a standard `libjsonnet.so` shared library and should work as drop-in replacement for it7374### Other7576WASM bingings are also available, Java bindings (Both JNI and WASM compiled to .class) are in progress7778See [bindings](./bindings/) for more information.