extism 1.2.0.0 → 1.2.0.1
raw patch · 2 files changed
+21/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- extism.cabal +2/−1
- scripts/download-or-build.sh +19/−0
extism.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: extism-version: 1.2.0.0+version: 1.2.0.1 license: BSD-3-Clause maintainer: oss@extism.org author: Extism authors@@ -9,6 +9,7 @@ description: Bindings to Extism, the universal plugin system category: Plugins, WebAssembly extra-doc-files: cabal.project README.md CHANGELOG.md+extra-source-files: scripts/download-or-build.sh build-type: Custom custom-setup
+ scripts/download-or-build.sh view
@@ -0,0 +1,19 @@+#!/usr/bin/env bash++set -ue++if [ -f "./target/release/libextism_hs.a" ]; then+ echo "Extism library already installed, remove ./target/release/libextism_hs.a to rebuild it"+ exit 0+fi++if ! [ -x "$(command -v extism)" ]; then+ echo 'Extism CLI is not installed. Building Extism using cargo' >&2+ cargo build --release+else+ VERSION=$(grep 'extism = ".*"' Cargo.toml | awk '{ print $3 }' | sed 's/"//g')+ extism lib install --prefix ./target/extism --version v$VERSION+ mkdir -p ./target/release+ cp ./target/extism/lib/libextism.a ./target/release/libextism_hs.a+fi+