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 async support #13

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

stevefan1999-personal
Copy link
Contributor

No description provided.

examples/server/main.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated
rand_core = "0.6.3"
sha1 = "0.10.1"
smol = { version = "1.2.5", optional = true }
tokio = { version = "1.19.2", features = ["io-util"], optional = true }
Copy link
Owner

Choose a reason for hiding this comment

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

At this point in time I do not wish to add tokio, smol, async-std and all their baggage to this codebase. I do plan on adding async support but I wanted to think about it properly before attempting it. I think the async streaming story in Rust is a tire fire and I don't want to add to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, we should keep async feature then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and then for each stream the user will need to provide their own compat implementation

Copy link
Owner

Choose a reason for hiding this comment

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

Yes I think that would be better

@stevefan1999-personal
Copy link
Contributor Author

stevefan1999-personal commented Jun 25, 2022

hmm, speaking of the Read and Write support, embedded_io should actually worth to take a look. Even if it looks like there aren't AsyncRead and AsyncWrite yetThere are

@elpiel
Copy link

elpiel commented Nov 9, 2023

Any progress on this async support @ninjasource ?

PS: This create is amazing, thanks a lot! Will hopefully test it out soon.

@ninjasource
Copy link
Owner

Thanks @elpiel , I'll take a loot at async again. Been working on other stuff.

@elpiel
Copy link

elpiel commented Nov 17, 2023

I'm open in helping out with this effort as well. Can't wait to try out embedded websockets!

@elpiel
Copy link

elpiel commented Jan 16, 2024

embedded-hal and embedded-hal-async are now on version 1.0 🎉
https://docs.rs/embedded-hal-async/

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.

None yet

3 participants