-
Notifications
You must be signed in to change notification settings - Fork 21
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
Use !Send types for wasm32 support. #10
Conversation
cargo check --target=wasm32-unknown-unknown --no-default-features --features client Requires two upstream PRs to land: seanmonstar/reqwest#1576 jpopesculian/reqwest-eventsource#10
Hi! Any news on this? I'm relying on this crate for a project and interested on using support for wasm |
cargo check --target=wasm32-unknown-unknown --no-default-features --features client Requires two upstream PRs to land: seanmonstar/reqwest#1576 jpopesculian/reqwest-eventsource#10
@@ -15,7 +15,7 @@ categories = ["web-programming::http-client", "no-std", "parsing", "asynchronous | |||
|
|||
[dependencies] | |||
eventsource-stream = "0.2.3" | |||
reqwest = { version = "0.11", default-features = false, features = ["stream"] } | |||
reqwest = { version = "0.11", path = "../reqwest", default-features = false, features = ["stream"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the path
value expected ?
cargo check
fail (see below for the error message) when until I remove that field.
Updating git repository `https://github.com/tmpfs/reqwest-eventsource.git`
error: no matching package named `reqwest` found
location searched: https://github.com/tmpfs/reqwest-eventsource.git?rev=6ce0923ccc7cae4ce39a600b35425a62edc632b5#6ce0923c
required by package `reqwest-eventsource v0.4.0 (https://github.com/tmpfs/reqwest-eventsource.git?rev=6ce0923ccc7cae4ce39a600b35425a62edc632b5#6ce0923c)`
... which satisfies git dependency `reqwest-eventsource` of package `sse-web v0.1.0 (/home/[Redacted]/Documents/platform_sse/sse-web)`
Hi @FirelightFlagboy, I don't need this anymore so won't continue to work on this, however, I noticed that |
closed with #13 thanks!!! |
This depends upon landing wasm32 support for
bytes_stream()
inreqwest
; I have opened a PR that adds support here.If we can land that PR and this one then this library should work in wasm32 😁