2024-06-28 08:16:03 +00:00
|
|
|
//go:build !linux && !darwin
|
2024-06-25 07:58:04 +00:00
|
|
|
|
|
|
|
package plugins
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/tetratelabs/wazero"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ContextApplier func(ctx context.Context) context.Context
|
|
|
|
|
|
|
|
// InstantiateHost instantiates the Host module.
|
|
|
|
func InstantiateHost(ctx context.Context, runtime wazero.Runtime, mod wazero.CompiledModule, settings Settings) (ContextApplier, error) {
|
|
|
|
return func(ctx context.Context) context.Context {
|
|
|
|
return ctx
|
|
|
|
}, nil
|
|
|
|
}
|