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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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