difftreelog
Merge pull request #109 from julienduchesne/julienduchesne/fix-libjsonnet-build
in: master
2 files changed
bindings/Makefilediffbeforeafterboth1../target/release/libjsonnet.so:1../target/release/libjsonnet.so:2 cargo build --release -p jsonnet2 cargo build --release -p libjsonnet334./c/libjsonnet_test_file: ./c/libjsonnet_test_file.c ../target/release/libjsonnet.so4./c/libjsonnet_test_file: ./c/libjsonnet_test_file.c ../target/release/libjsonnet.so5 gcc -L../target/release/ -ljsonnet ./c/libjsonnet_test_file.c -o ./c/libjsonnet_test_file5 gcc -L../target/release/ -ljsonnet ./c/libjsonnet_test_file.c -o ./c/libjsonnet_test_file11 valgrind --leak-check=full ./c/libjsonnet_test_file test.jsonnet11 valgrind --leak-check=full ./c/libjsonnet_test_file test.jsonnet121213../target/wasm32-wasi/release/jsonnet.wasm:13../target/wasm32-wasi/release/jsonnet.wasm:14 cd jsonnet && cargo wasi build --release -p jsonnet && cd ..14 cd jsonnet && cargo wasi build --release -p libjsonnet && cd ..151516test-js: ../target/wasm32-wasi/release/jsonnet.wasm16test-js: ../target/wasm32-wasi/release/jsonnet.wasm17 node --experimental-wasi-unstable-preview1 --experimental-wasm-bigint js/index17 node --experimental-wasi-unstable-preview1 --experimental-wasm-bigint js/indexbindings/README.mddiffbeforeafterboth5Headers are described in `c/libjsonnet.h`, this file is exact copy from `C` implementation of jsonnet, plus additional jrsonnet-specific methods5Headers are described in `c/libjsonnet.h`, this file is exact copy from `C` implementation of jsonnet, plus additional jrsonnet-specific methods667Bindings should work as drop-in replacement for standard impl7Bindings should work as drop-in replacement for standard impl89## Building Linux .so library on MacOS1011You can use `cross-rs` to do so:1213```console14cargo install cross --git https://github.com/cross-rs/cross15cross build --release -p libjsonnet --target x86_64-unknown-linux-gnu16```817