Skip to content

Conversation

@Fishrock123
Copy link
Contributor

@Fishrock123 Fishrock123 commented Nov 26, 2020

Adds a compile-time flag to support running on async-std's threadpool rather than a tokio one.

This also switches out Reqwest for Surf, which has multiple http client backends, including a Hyper (tokio-compatible) one.

Note: these feature flags are mutually exclusive, and building does not work if none is specified (i.e. --no-default-features).

cc @nlopes

Adds a compile-time flag to support running on async-std's threadpool rather than a tokio one.

This also switches out Reqwest for Surf, which has multiple http client backends, including a Hyper (tokio-compatible) one.
@nlopes
Copy link
Owner

nlopes commented Dec 10, 2020

Apologies @Fishrock123 but I merged a PR that improved things a bit with reqwest (in terms of dependencies) but that will force you to rebase.

I also noticed that tests didn't successfully run, something to take a look at.

Overall I like this change (the smaller the footprint the better).

@Fishrock123
Copy link
Contributor Author

Ah shoot. It would have been easier to merge that after since surf is still playing catch-up a bit here.

@ericsampson
Copy link

is this work resumable @Fishrock123? :)

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.

3 participants