Skip to content

Add more optional features to the main futures crate #1875

Closed
@seanmonstar

Description

@seanmonstar

For convenience, the futures (well, futures-preview for now) crate re-exports from all of the futures-*. This can be a nice first experience, being able to use streams, sinks, channels, and what-not out-of-the-box. However, due to this, other libraries have been removing their dependency on futures to a smaller group that they need (such as futures-core and futures-util).

I think it could be useful if a library could depend on futures while disabling the pieces they don't need. So, like in hyper, it could have futures = { version = "0.3", default-features = false, features = ["util"] }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions