You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use jsonschema in a wasm a environment. I tried this code (below). The app compiles just fine, however it crashes just as soon as it just as soon as it reaches JSONSchema::compile
let schema = json!({"maxLength": 5});let compiled = JSONSchema::compile(&schema);
I tried different versions / features combinations based in previous issues regarding the same matter (#222, #395) . They each crash for different reasons.
jsonschema = { version = "=0.15.1", default-features = false, features = ["structopt"]}
exception: no mapping for imported function sched_yield
jsonschema = { version = "0.17.0", default-features = false, features = ["resolve-file"]}
exception: no mapping for imported function fd_read
As soon as I add resolve-http to the features I get: could not find blocking in reqwest, which is what we're trying to avoid.
Which features do I need to add in order to use JSONSchema in WASM environment?
The text was updated successfully, but these errors were encountered:
Oh, thats problematic right now - I don't think that resolving works just yet, but it will as soon as I'll finish the rewrite. There will be async + blocking API for resolving refs via network. Not sure about the filesystem, but wasm32-wasi probably would work.
Also, I am going to run a full test suite on WASM as the implementation is ready.
Meanwhile - what is your rustc version and target?
I'd like to use jsonschema in a wasm a environment. I tried this code (below). The app compiles just fine, however it crashes just as soon as it just as soon as it reaches JSONSchema::compile
I tried different versions / features combinations based in previous issues regarding the same matter (#222, #395) . They each crash for different reasons.
jsonschema = { version = "=0.15.1", default-features = false, features = ["structopt"]}
exception: no mapping for imported function sched_yield
jsonschema = { version = "0.17.0", default-features = false, features = ["resolve-file"]}
exception: no mapping for imported function fd_read
As soon as I add resolve-http to the features I get:
could not find blocking in reqwest
, which is what we're trying to avoid.Which features do I need to add in order to use JSONSchema in WASM environment?
The text was updated successfully, but these errors were encountered: