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

Add tokio feature & make tokio optional for WASM support #1382

Merged
merged 13 commits into from Sep 25, 2022

Conversation

logankeenan
Copy link
Contributor

Motivation

This PR is a continuation of @fisherdarling's PR since they are very busy and don't have time to see it through at the moment.

It allows Axum to be compiled to WASM, therefore, executable in a browser, Cloudflare Worker, etc...

Solution

This PR adds a tokio feature that enables tokio as well as hyper/tcp and hyper/server. The tokio feature also enables SSE and extract::connect_info.

This is a breaking change since this breaks usages of default_features = false.

axum/Cargo.toml Outdated Show resolved Hide resolved
@davidpdrsn
Copy link
Member

@logankeenan fyi I've started committing to this a bit, so plz don't force push 🙏

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

Thank you @fisherdarling and @logankeenan for working on this. I did some final touch ups and this is good to merge 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants