rust-lang / futures-rs

Zero-cost asynchronous programming in Rust
https://rust-lang.github.io/futures-rs/
Apache License 2.0
5.37k stars 621 forks source link

Merge futures-util and futures-executor to main futures crate #2295

Open taiki-e opened 3 years ago

taiki-e commented 3 years ago

I would propose to merge these utility crates to the main futures crate. There are some reasons:

futures-channel is also a "utility crate", but it's almost independent, so I'm not sure if merging it is really preferable.

Nemo157 commented 3 years ago

Sounds good to me assuming they're feature gated.

taiki-e commented 3 years ago

futures-channel is also a "utility crate", but it's almost independent, so I'm not sure if merging it is really preferable.

Given that futures-channel currently depends on futures-core's internal API, it probably makes sense to merge futures-channel into futures as well. This also allows AtomicWaker to move from futures-core to futures.

assuming they're feature gated.

For now, I'm considering adding the following features:

(I'll open a new issue about this later.)

taiki-e commented 3 years ago

To make backporting to 0.3 easier, I will block this for now.