From 1fd5d5e5ed994254372851fcd2f9e5c01a0d0865 Mon Sep 17 00:00:00 2001 From: hellodword <46193371+hellodword@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:29:25 +0000 Subject: [PATCH] chore: update extism-runtime.wasm (#71) add RuntimeVersion closes #69 --- extism-runtime.wasm | Bin 3508 -> 3454 bytes extism-runtime.wasm.version | 1 + extism.go | 7 +++++++ 3 files changed, 8 insertions(+) create mode 100644 extism-runtime.wasm.version diff --git a/extism-runtime.wasm b/extism-runtime.wasm index 07ce60393f78d2d0e829846af39272101ac52f33..187bd2c9e4b8f0fda65e4e4aad77ee17f8f7b6d4 100644 GIT binary patch delta 504 zcmZXO!Ae3=5QgVJ$9u1M)NEr`1Xnj=B_RZ2MQ~fT3~CowE5Q&mP{KuceT6!R574en zL=m*BC#X%U3R?FDwTR|W7$FDd%zVuJ|9?IGHC3lds{tZHHe4oj%jj|u-7b}75CjMq zkbwcifXYO2A}J+8fW^-iLhvy;AtFnH5_VEH@z_)WdA;5p4S(lSq%IE0_TYt_o3 zzf);dCF0did%xB2cbf-oZY4$DCX%<1U~A|;t|lYok_%TPNIgrNDF-xppncH+&Rzuc ztK7o7UJM-p`XaPBL&}9GmWVvc$+SxwG49r=D06B|>9nJ-8R@F)%a5U#SSa56&mb=Il#FmQ7E-dV?uj)u*A99|ddZ&-~NJdRwHC3Yj# z*7wm`3{%R4$&HZo2q_Io{P(J0$T^G<+r6k1*AJDo)c`=C^Nxvl63vVMW|Kpq=&#VY FA>Rv;Y>WT^ delta 555 zcmZvX(Mm!=5Qb-V-E*{!)B;T-IC^6T4T>%#ir~~;JwSJaER&pt+1YPq|NZwPdNZORS1BO?V8WZ_N-0!XtYTFsXca2U zstR<{N6;96heLXrA#%MuLI^{L$qYkqgn$v@3Y}W50a8KtZeFmkQOcLfJNpbou2?Lu z0XsVQ45Q3s3i;f2W;IvIbJlk?9J442`ckmyM^~Td3 zJoHCo(#3UbiN}BW81u!zfq6)CpL4G(3j%JF9%Mp$Iiq*E(f-eR|9CHVk*P>WIk diff --git a/extism-runtime.wasm.version b/extism-runtime.wasm.version new file mode 100644 index 0000000..9bdb566 --- /dev/null +++ b/extism-runtime.wasm.version @@ -0,0 +1 @@ +v1.4.1 \ No newline at end of file diff --git a/extism.go b/extism.go index cf0f821..cf33adf 100644 --- a/extism.go +++ b/extism.go @@ -23,6 +23,13 @@ import ( //go:embed extism-runtime.wasm var extismRuntimeWasm []byte +//go:embed extism-runtime.wasm.version +var extismRuntimeWasmVersion string + +func RuntimeVersion() string { + return extismRuntimeWasmVersion +} + // Runtime represents the Extism plugin's runtime environment, including the underlying Wazero runtime and modules. type Runtime struct { Wazero wazero.Runtime