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

The ureq dependency in the svg feature does not compile wasm #845

Open
StringKe opened this issue Oct 6, 2023 · 1 comment
Open

The ureq dependency in the svg feature does not compile wasm #845

StringKe opened this issue Oct 6, 2023 · 1 comment
Labels
blocked:upstream Blocked by an upstream issue.

Comments

@StringKe
Copy link
Contributor

StringKe commented Oct 6, 2023

Several of the tls that ureq relies on require the use of ring, a cryptographic processing package, and ring cannot be compiled under wasm at this time.

➜ make build                         
EMCC_CFLAGS="-s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAX_WEBGL_VERSION=2 -s MODULARIZE=1 -s EXPORT_NAME=createRustSkiaModule -s EXPORTED_RUNTIME_METHODS=GL" EMSDK=~/.asdf/installs/emsdk/3.1.46 cargo build --target wasm32-unknown-emscripten
   Compiling ring v0.16.20
   Compiling ureq v2.8.0
error[E0432]: unresolved import `super::sysrand_chunk`
   --> /Users/chen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/src/rand.rs:306:16
    |
306 |     use super::sysrand_chunk::chunk;
    |                ^^^^^^^^^^^^^ could not find `sysrand_chunk` in `super`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `ring` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
make: *** [build] Error 101

upstream error: briansmith/ring#1568

REPO: https://github.com/StringKe/wasm-error

I tried to modify the implementation of the request, how should I test it locally?
StringKe@a0f4bcc

@pragmatrix
Copy link
Member

@StringKe You can use the svg in #569 (comment) and this test case shows how to use the API.

@pragmatrix pragmatrix added the blocked:upstream Blocked by an upstream issue. label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked:upstream Blocked by an upstream issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants