amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

adds `wasm-schema-sandbox` to `ion-schema-rust` repository #108

Closed desaikd closed 2 years ago

desaikd commented 2 years ago

Description of changes: This PR works on adding Ion schema sandbox using Web Assembly.

List of changes:

Test: adds a wasm-bindgen test

popematt commented 2 years ago

Can the wasm ion-schema be used independently of the sandbox? I.e. is this just adding a sandbox that has ion schema hidden inside, or is it adding a wasm library(?) that anyone can consume?

desaikd commented 2 years ago

Can the wasm ion-schema be used independently of the sandbox? I.e. is this just adding a sandbox that has ion schema hidden inside, or is it adding a wasm library(?) that anyone can consume?

This wasm ion-schema contains validate method defined in lib.rs that is the method that will be used by sandbox. Hence, this is just adding a sandbox that has ion schema hidden inside.