aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
527 stars 100 forks source link

Bump tokio and move to std Future (async/await) #182

Closed udoprog closed 4 years ago

udoprog commented 4 years ago

I've been tinkering with bumping this crate to the upcoming std future and tokio to make sure it's ready when both are released.

My thinking here would be to:

I was hoping to track progress here.

8573 commented 4 years ago

Using async functions

This would mean raising the minimum required Rust version, right?

udoprog commented 4 years ago

@8573 Yes. As well as a major API break.

udoprog commented 4 years ago

Started working on it here: https://github.com/udoprog/irc/tree/tokio-bump

I did an initial pass where I tried to maintain the existing API, but it didn't make much sense to me.

You can see the new API in-use in the build-bot bin. I'm considering making the send future part of the client stream instead of having it be a separate thing. Alternative have it be a thing that can be taken out of the client similarly to how stream is right now. This is done.

Examples ported:

udoprog commented 4 years ago

Done since #184 was merged