Crate styx_wasm

Crate styx_wasm 

Source
Expand description

§styx-wasm

crates.io documentation MIT/Apache-2.0 licensed

WebAssembly bindings for the Styx parser. Enables parsing and validating Styx documents in browsers and other WASM runtimes.

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§License

Licensed under either of:

at your option. WebAssembly bindings for the Styx parser.

This crate provides JavaScript-callable functions for parsing Styx documents, converting to JSON, and getting diagnostics.

Structs§

Diagnostic
A diagnostic message from the parser.
ParseResult
Result of parsing a Styx document.

Functions§

from_json
Convert a JSON string to Styx format.
parse
Parse a Styx document and return diagnostics.
to_json
Convert a Styx document to JSON.
validate
Validate a Styx document and return whether it’s valid.
version
Get the version of the Styx WASM library.