Skip to content

Commit

Permalink
feat: move extism functions to extism:host/env namespace (#31)
Browse files Browse the repository at this point in the history
This part of the extism/extism/issues/504 effort to move extism
functions to `extism::env`. For backward compatibility reasons, I am
also registering the functions in the `env` namespace.

---------

Co-authored-by: zach <[email protected]>
  • Loading branch information
mhmd-azeez and zshipko authored Oct 30, 2023
1 parent fd0e50e commit 8391ea7
Show file tree
Hide file tree
Showing 40 changed files with 146 additions and 86 deletions.
Binary file modified extism-runtime.wasm
Binary file not shown.
14 changes: 7 additions & 7 deletions extism.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,29 +376,29 @@ func NewPlugin(

// SetInput sets the input data for the plugin to be used in the next WebAssembly function call.
func (plugin *Plugin) SetInput(data []byte) (uint64, error) {
_, err := plugin.Runtime.Extism.ExportedFunction("extism_reset").Call(plugin.Runtime.ctx)
_, err := plugin.Runtime.Extism.ExportedFunction("reset").Call(plugin.Runtime.ctx)
if err != nil {
fmt.Println(err)
return 0, errors.New("reset")
}

ptr, err := plugin.Runtime.Extism.ExportedFunction("extism_alloc").Call(plugin.Runtime.ctx, uint64(len(data)))
ptr, err := plugin.Runtime.Extism.ExportedFunction("alloc").Call(plugin.Runtime.ctx, uint64(len(data)))
if err != nil {
return 0, err
}
plugin.Memory().Write(uint32(ptr[0]), data)
plugin.Runtime.Extism.ExportedFunction("extism_input_set").Call(plugin.Runtime.ctx, ptr[0], uint64(len(data)))
plugin.Runtime.Extism.ExportedFunction("input_set").Call(plugin.Runtime.ctx, ptr[0], uint64(len(data)))
return ptr[0], nil
}

// GetOutput retrieves the output data from the last WebAssembly function call.
func (plugin *Plugin) GetOutput() ([]byte, error) {
outputOffs, err := plugin.Runtime.Extism.ExportedFunction("extism_output_offset").Call(plugin.Runtime.ctx)
outputOffs, err := plugin.Runtime.Extism.ExportedFunction("output_offset").Call(plugin.Runtime.ctx)
if err != nil {
return []byte{}, err
}

outputLen, err := plugin.Runtime.Extism.ExportedFunction("extism_output_length").Call(plugin.Runtime.ctx)
outputLen, err := plugin.Runtime.Extism.ExportedFunction("output_length").Call(plugin.Runtime.ctx)
if err != nil {
return []byte{}, err
}
Expand All @@ -418,7 +418,7 @@ func (plugin *Plugin) Memory() api.Memory {

// GetError retrieves the error message from the last WebAssembly function call, if any.
func (plugin *Plugin) GetError() string {
errOffs, err := plugin.Runtime.Extism.ExportedFunction("extism_error_get").Call(plugin.Runtime.ctx)
errOffs, err := plugin.Runtime.Extism.ExportedFunction("error_get").Call(plugin.Runtime.ctx)
if err != nil {
return ""
}
Expand All @@ -427,7 +427,7 @@ func (plugin *Plugin) GetError() string {
return ""
}

errLen, err := plugin.Runtime.Extism.ExportedFunction("extism_length").Call(plugin.Runtime.ctx, errOffs[0])
errLen, err := plugin.Runtime.Extism.ExportedFunction("length").Call(plugin.Runtime.ctx, errOffs[0])
if err != nil {
return ""
}
Expand Down
170 changes: 103 additions & 67 deletions host.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (p *CurrentPlugin) Memory() api.Memory {

// Alloc a new memory block of the given length, returning its offset
func (p *CurrentPlugin) Alloc(n uint64) (uint64, error) {
out, err := p.plugin.Runtime.Extism.ExportedFunction("extism_alloc").Call(p.plugin.Runtime.ctx, uint64(n))
out, err := p.plugin.Runtime.Extism.ExportedFunction("alloc").Call(p.plugin.Runtime.ctx, uint64(n))
if err != nil {
return 0, err
} else if len(out) != 1 {
Expand All @@ -123,7 +123,7 @@ func (p *CurrentPlugin) Alloc(n uint64) (uint64, error) {

// Free the memory block specified by the given offset
func (p *CurrentPlugin) Free(offset uint64) error {
_, err := p.plugin.Runtime.Extism.ExportedFunction("extism_free").Call(p.plugin.Runtime.ctx, uint64(offset))
_, err := p.plugin.Runtime.Extism.ExportedFunction("free").Call(p.plugin.Runtime.ctx, uint64(offset))
if err != nil {
return err
}
Expand All @@ -133,7 +133,7 @@ func (p *CurrentPlugin) Free(offset uint64) error {

// Length returns the number of bytes allocated at the specified offset
func (p *CurrentPlugin) Length(offs uint64) (uint64, error) {
out, err := p.plugin.Runtime.Extism.ExportedFunction("extism_length").Call(p.plugin.Runtime.ctx, uint64(offs))
out, err := p.plugin.Runtime.Extism.ExportedFunction("length").Call(p.plugin.Runtime.ctx, uint64(offs))
if err != nil {
return 0, err
} else if len(out) != 1 {
Expand Down Expand Up @@ -221,7 +221,8 @@ func defineCustomHostFunctions(builder wazero.HostModuleBuilder, funcs []HostFun
}

func buildEnvModule(ctx context.Context, rt wazero.Runtime, extism api.Module, funcs []HostFunction) (api.Module, error) {
builder := rt.NewHostModuleBuilder("env")
builder := rt.NewHostModuleBuilder("extism:host/env")
envBuilder := rt.NewHostModuleBuilder("env")

wrap := func(name string, params []ValType, results []ValType) {
f := extism.ExportedFunction(name)
Expand All @@ -234,85 +235,72 @@ func buildEnvModule(ctx context.Context, rt wazero.Runtime, extism api.Module, f
}
}), params, results).
Export(name)

// Register the functions in the `env` namespace too for backward compatibility
envBuilder.
NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(func(ctx context.Context, m api.Module, stack []uint64) {
err := f.CallWithStack(ctx, stack)
if err != nil {
panic(err)
}
}), params, results).
Export(fmt.Sprintf("extism_%s", name))
}

wrap("extism_alloc", []ValType{I64}, []ValType{I64})
wrap("extism_free", []ValType{I64}, []ValType{})
wrap("extism_load_u8", []ValType{I64}, []ValType{I32})
wrap("extism_input_load_u8", []ValType{I64}, []ValType{I32})
wrap("extism_store_u64", []ValType{I64, I64}, []ValType{})
wrap("extism_store_u8", []ValType{I64, I32}, []ValType{})
wrap("extism_input_set", []ValType{I64, I64}, []ValType{})
wrap("extism_output_set", []ValType{I64, I64}, []ValType{})
wrap("extism_input_length", []ValType{}, []ValType{I64})
wrap("extism_output_length", []ValType{}, []ValType{I64})
wrap("extism_output_offset", []ValType{}, []ValType{I64})
wrap("extism_length", []ValType{I64}, []ValType{I64})
wrap("extism_reset", []ValType{}, []ValType{})
wrap("extism_error_set", []ValType{I64}, []ValType{})
wrap("extism_error_get", []ValType{}, []ValType{I64})
wrap("extism_memory_bytes", []ValType{}, []ValType{I64})
wrap("alloc", []ValType{I64}, []ValType{I64})
wrap("free", []ValType{I64}, []ValType{})
wrap("load_u8", []ValType{I64}, []ValType{I32})
wrap("input_load_u8", []ValType{I64}, []ValType{I32})
wrap("store_u64", []ValType{I64, I64}, []ValType{})
wrap("store_u8", []ValType{I64, I32}, []ValType{})
wrap("input_set", []ValType{I64, I64}, []ValType{})
wrap("output_set", []ValType{I64, I64}, []ValType{})
wrap("input_length", []ValType{}, []ValType{I64})
wrap("output_length", []ValType{}, []ValType{I64})
wrap("output_offset", []ValType{}, []ValType{I64})
wrap("length", []ValType{I64}, []ValType{I64})
wrap("reset", []ValType{}, []ValType{})
wrap("error_set", []ValType{I64}, []ValType{})
wrap("error_get", []ValType{}, []ValType{I64})
wrap("memory_bytes", []ValType{}, []ValType{I64})

builder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(func(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}

offset, ok := ctx.Value("inputOffset").(uint64)
if !ok {
panic("Invalid context")
}
WithGoModuleFunction(api.GoModuleFunc(api.GoModuleFunc(inputLoad_u64)), []ValType{I64}, []ValType{I64}).
Export("input_load_u64")

stack[0], ok = p.Memory().ReadUint64Le(uint32(stack[0] + offset))
if !ok {
panic(fmt.Sprintf("could not read value at offset: %v", stack[0]))
}
}), []ValType{I64}, []ValType{I64}).
envBuilder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(inputLoad_u64), []ValType{I64}, []ValType{I64}).
Export("extism_input_load_u64")

builder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(func(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}
WithGoModuleFunction(api.GoModuleFunc(load_u64), []ValType{I64}, []ValType{I64}).
Export("load_u64")

stack[0], ok = p.Memory().ReadUint64Le(uint32(stack[0]))
if !ok {
panic(fmt.Sprintf("could not read value at offset: %v", stack[0]))
}
}), []ValType{I64}, []ValType{I64}).
envBuilder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(load_u64), []ValType{I64}, []ValType{I64}).
Export("extism_load_u64")

builder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(func(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}
WithGoModuleFunction(api.GoModuleFunc(store_u64), []ValType{I64, I64}, []ValType{}).
Export("store_u64")

offset := stack[0]
value := stack[1]
ok = p.Memory().WriteUint64Le(uint32(offset), value)
if !ok {
panic(fmt.Sprintf("could not write value '%v' at offset: %v", value, offset))
}
}), []ValType{I64, I64}, []ValType{}).
envBuilder.NewFunctionBuilder().
WithGoModuleFunction(api.GoModuleFunc(store_u64), []ValType{I64, I64}, []ValType{}).
Export("extism_store_u64")

hostFunc := func(name string, f interface{}) {
builder.NewFunctionBuilder().WithFunc(f).Export(name)
envBuilder.NewFunctionBuilder().WithFunc(f).Export(fmt.Sprintf("extism_%s", name))
}

hostFunc("extism_config_get", configGet)
hostFunc("extism_var_get", varGet)
hostFunc("extism_var_set", varSet)
hostFunc("extism_http_request", httpRequest)
hostFunc("extism_http_status_code", httpStatusCode)
hostFunc("config_get", configGet)
hostFunc("var_get", varGet)
hostFunc("var_set", varSet)
hostFunc("http_request", httpRequest)
hostFunc("http_status_code", httpStatusCode)

defineCustomHostFunctions(builder, funcs)
defineCustomHostFunctions(envBuilder, funcs)

logFunc := func(name string, level LogLevel) {
hostFunc(name, func(ctx context.Context, m api.Module, offset uint64) {
Expand All @@ -331,14 +319,62 @@ func buildEnvModule(ctx context.Context, rt wazero.Runtime, extism api.Module, f
})
}

logFunc("extism_log_debug", Debug)
logFunc("extism_log_info", Info)
logFunc("extism_log_warn", Warn)
logFunc("extism_log_error", Error)
logFunc("log_debug", Debug)
logFunc("log_info", Info)
logFunc("log_warn", Warn)
logFunc("log_error", Error)

_, err := envBuilder.Instantiate(ctx)
if err != nil {
return nil, err
}

return builder.Instantiate(ctx)
}

func store_u64(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}

offset := stack[0]
value := stack[1]
ok = p.Memory().WriteUint64Le(uint32(offset), value)
if !ok {
panic(fmt.Sprintf("could not write value '%v' at offset: %v", value, offset))
}
}

func load_u64(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}

stack[0], ok = p.Memory().ReadUint64Le(uint32(stack[0]))
if !ok {
panic(fmt.Sprintf("could not read value at offset: %v", stack[0]))
}
}

func inputLoad_u64(ctx context.Context, mod api.Module, stack []uint64) {
p, ok := ctx.Value("plugin").(*Plugin)
if !ok {
panic("Invalid context")
}

offset, ok := ctx.Value("inputOffset").(uint64)
if !ok {
panic("Invalid context")
}

stack[0], ok = p.Memory().ReadUint64Le(uint32(stack[0] + offset))
if !ok {
panic(fmt.Sprintf("could not read value at offset: %v", stack[0]))
}
}

func configGet(ctx context.Context, m api.Module, offset uint64) uint64 {
if plugin, ok := ctx.Value("plugin").(*Plugin); ok {
cp := plugin.currentPlugin()
Expand Down
2 changes: 1 addition & 1 deletion plugins/config/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-config
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/config/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/exit/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-exit
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/exit/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/fs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-fs
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/fs/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/host/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-host
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/host/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/host_memory/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-host-memory
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/host_memory/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/host_multiple/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-host-multiple
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/host_multiple/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
2 changes: 1 addition & 1 deletion plugins/http/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/extism/extism-sdk-plugins-http
go 1.20

require (
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 // indirect
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
)
2 changes: 2 additions & 0 deletions plugins/http/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64 h1:IfR1k741q+yQLvv5sLShCkvt3FgKU4wQVJfp7hhb/iY=
github.com/extism/go-pdk v0.0.0-20230119214914-65bffbeb3e64/go.mod h1:1wdiAoG8306g4WK+6laBrS+75089/0V4XRVTllt8b5U=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263 h1:uSo+K1JhsMlamDmaxyAGj0dGExZHLsL+Edyug0dC+uk=
github.com/extism/go-pdk v1.0.0-rc1.0.20231019212020-62d54a6e0263/go.mod h1:Gz+LIU/YCKnKXhgge8yo5Yu1F/lbv7KtKFkiCSzW/P4=
github.com/valyala/fastjson v1.6.3 h1:tAKFnnwmeMGPbwJ7IwxcTPCNr3uIzoIj3/Fh90ra4xc=
github.com/valyala/fastjson v1.6.3/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
Loading

0 comments on commit 8391ea7

Please sign in to comment.