From 6a3b09a507aca0498845d9118a21a82bb5054301 Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 10 Nov 2025 07:29:48 +0100 Subject: [chore] update dependencies (#4547) - codeberg.org/gruf/go-ffmpreg: v0.6.12 -> v0.6.14 - github.com/ncruces/go-sqlite3: v0.30.0 -> v0.30.1 - github.com/wazero/wazero: v1.9.0 -> v1.10.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4547 Co-authored-by: kim Co-committed-by: kim --- vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go') diff --git a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go index ca13bf775..048486ee4 100644 --- a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go +++ b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/runtime.go @@ -5,6 +5,7 @@ import ( "github.com/tetratelabs/wazero" "github.com/tetratelabs/wazero/api" + "github.com/tetratelabs/wazero/experimental" "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" ) @@ -15,7 +16,8 @@ const CoreFeatures = api.CoreFeatureSIMD | api.CoreFeatureNonTrappingFloatToIntConversion | api.CoreFeatureMutableGlobal | api.CoreFeatureReferenceTypes | - api.CoreFeatureSignExtensionOps + api.CoreFeatureSignExtensionOps | + experimental.CoreFeaturesTailCall // NewRuntime returns a new WebAssembly wazero.Runtime compatible with go-ffmpreg. func NewRuntime(ctx context.Context, cfg wazero.RuntimeConfig) (wazero.Runtime, error) { @@ -40,9 +42,9 @@ func NewRuntime(ctx context.Context, cfg wazero.RuntimeConfig) (wazero.Runtime, env = env.NewFunctionBuilder(). WithGoModuleFunction( api.GoModuleFunc(setjmp), - []api.ValueType{api.ValueTypeI32}, - []api.ValueType{api.ValueTypeI32}, - ).Export("setjmp") + []api.ValueType{api.ValueTypeI32, api.ValueTypeI32, api.ValueTypeI32}, + []api.ValueType{}, + ).Export("__wasm_setjmp") // Register longjmp host function. env = env.NewFunctionBuilder(). @@ -50,7 +52,7 @@ func NewRuntime(ctx context.Context, cfg wazero.RuntimeConfig) (wazero.Runtime, api.GoModuleFunc(longjmp), []api.ValueType{api.ValueTypeI32, api.ValueTypeI32}, []api.ValueType{}, - ).Export("longjmp") + ).Export("__wasm_longjmp") // Instantiate "env" module. _, err = env.Instantiate(ctx) -- cgit v1.2.3