rustjson

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rustjson provides a JSON parser backed by a Rust WASM module compiled from rust/parsers/json-parser using serde_json.

Build the WASM binary with:

cd rust && make build-json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser parses JSON documents using the Rust serde_json crate via WASM. It implements config.Parser.

func New

func New(ctx context.Context) (*Parser, error)

New creates a Parser, compiling the embedded WASM module once. The caller must call Close when the Parser is no longer needed.

func (*Parser) Close

func (p *Parser) Close(ctx context.Context) error

Close releases the underlying WASM runtime resources.

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, doc *config.Document) (map[string]any, error)

Parse implements config.Parser.

Jump to

Keyboard shortcuts

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