Skip to main content

Crate openbim_loin_wasm

Crate openbim_loin_wasm 

Source
Expand description

Browser bindings for openbim-loin.

The core crate carries no wasm or JS dependency; this crate is the only place wasm-bindgen appears. Diagnostics and errors cross the boundary as structured JS objects rather than formatted strings, so callers branch on code, severity and kind instead of parsing message text.

Structs§

JsDiagnostic
One validation finding, shaped for JS consumption.
JsMigration
Migrated document plus the report describing what changed.
JsMigrationReport
Counts describing what a migration changed.

Functions§

is_well_formed
True when the input parses as a LOIN document at all.
migrate
Migrates a document to a target LOIN namespace version.
rewrite
Parses and re-serialises a document, preserving its observed namespace.
validate
Validates a LOIN document, returning an array of diagnostics.