wasmrt

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package wasmrt provides WASM runtime configuration for PSL engine.

Index

Constants

This section is empty.

Variables

View Source
var ExportedFunctions = []string{
	"psl_decode",
	"psl_encode",
	"psl_validate",
	"psl_list_protocols",
	"psl_get_schema",
	"psl_alloc",
	"psl_free",
}

ExportedFunctions lists functions exported to WASM.

Functions

This section is empty.

Types

type Config

type Config struct {
	Target    string   `json:"target"`     // "wasm", "wasi"
	OptLevel  int      `json:"opt_level"`  // 0-3
	MaxMemory int      `json:"max_memory"` // MB
	Features  []string `json:"features"`
}

Config holds WASM compilation configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default WASM config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL