Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable jsonschema resolution to support web5-rs in WASM builds #230

Conversation

enmand
Copy link
Contributor

@enmand enmand commented Jun 12, 2024

Without disabling the resolve-http feature, the jsonschema crate fails to build on WASM environments due to use of reqwest::blocking, which is not built in WASM environments. Stranger6667/jsonschema#222 has additional context.

The use of jsonschema, currently at least, does not use resolution and is used against a schema defined in code for Verifiable Credentials.

Without disabling the resolve-http feature, the jsonschema crate fails to build
on WASM environments due to use of `reqwest::blocking`, which is not built in
WASM environments. Stranger6667/jsonschema#222 has additional context.

The use of jsonschema, currently at least, does not use resolution and is used
against a schema defined in code for Verifiable Credentials
Copy link
Contributor

@KendallWeihe KendallWeihe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WASM isn't within scope of the existing Rust Core Working Group, but so long as this doesn't impact the set of deliverables then it's great if we can enable WASM compatibility! ✅

@KendallWeihe KendallWeihe merged commit 8ec11cb into decentralized-identity:main Jun 12, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants