Cargo Features
[dependencies]
futures-util-either = { version = "0.2.0", default-features = false, features = ["std", "alloc", "futures_io", "tokio_io", "either", "futures-util"] }
- default = futures_io, std, tokio_io
-
These default features are set whenever
futures-util-either
is added without
somewhere in the dependency tree.default-features = false - std default futures_io tokio_io = alloc
- alloc std
- futures_io default = std
-
Enables std of futures-io
- tokio_io default = std, tokio
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- either implicit feature
-
Enables either
either:
The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases - futures-util implicit feature
-
Enables futures-util
futures-util:
Common utilities and extension traits for the futures-rs library
- futures-io futures_io
- tokio tokio_io