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

Use !Send types for wasm32 support. #10

Closed
wants to merge 1 commit into from
Closed

Conversation

tmpfs
Copy link
Contributor

@tmpfs tmpfs commented Jul 15, 2022

This depends upon landing wasm32 support for bytes_stream() in reqwest; 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 😁

tmpfs added a commit to saveoursecrets/sdk that referenced this pull request Jul 15, 2022
cargo check --target=wasm32-unknown-unknown --no-default-features --features client

Requires two upstream PRs to land:

seanmonstar/reqwest#1576

jpopesculian/reqwest-eventsource#10
@LeoBorai
Copy link

Hi! Any news on this? I'm relying on this crate for a project and interested on using support for wasm

tmpfs added a commit to saveoursecrets/sdk that referenced this pull request Jan 28, 2023
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"] }

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)`

@tmpfs
Copy link
Contributor Author

tmpfs commented Jul 19, 2023

Hi @FirelightFlagboy, I don't need this anymore so won't continue to work on this, however, I noticed that bytes_stream() has been added to reqwest (see the thread in the linked issue), so it should be just a case of upgrading reqwest and merging this.

@jpopesculian
Copy link
Owner

closed with #13 thanks!!!

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.

4 participants