-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support ESP-IDF framework (esp32 family of hardware devices with std support) #5867
Closed
6 tasks done
Labels
Comments
jasta
added
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
labels
Jul 14, 2023
This was referenced Jul 14, 2023
All PRs are submitted now. Just waiting on reviews... |
Woohoo! Fully merged, latest tokio master branch should support the ESP32 family but with a quirk that you'll need to modify [target.riscv32imc-esp-espidf]
rustflags = ["--cfg", "mio_unsupported_force_poll_poll"] And to patch [patch.crates-io]
mio = { git = "https://github.com/tokio-rs/mio", branch = "master" }
socket2 = { git = "https://github.com/rust-lang/socket2", branch = "master" }
tokio = { git = "https://github.com/tokio-rs/tokio", branch = "master" } EDIT: I'm working on a bare bones github repo that shows this all working |
Added a demo repo to show it all in action: https://github.com/jasta/esp32-tokio-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe.
ESP32 family of devices (e.g. ESP32C3) can work with tokio but requires patches to socket2, mio, and tokio itself.
Describe the solution you'd like
Generally, fix build errors in socket2 and tokio due to missing functionality, then merge in poll support to mio. This list tracks the dependencies:
Describe alternatives you've considered
The esp community currently is favoring smol/async-io but still has to maintain non-upstream patches. An alternative would be to continue on this path, however I prefer adding tokio support directly for two reasons:
The text was updated successfully, but these errors were encountered: