Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Commit a96b843

Browse files
authored
std futures note (#16)
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent f3d5409 commit a96b843

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@ With [cargo-edit](https://crates.io/crates/cargo-edit) do:
159159
$ cargo add runtime --allow-prerelease
160160
```
161161

162+
To use Futures in the same project, make sure to install
163+
[futures-preview](https://docs.rs/futures-preview/) for std futures.
164+
```sh
165+
$ cargo add futures-preview --allow-prerelease
166+
```
167+
168+
`futures-preview` provides support for std futures/futures 0.3, while `futures` provides support for
169+
the no longer developed futures 0.1. Once futures land in stdlib, it's expected that the two crates
170+
will merge back into `futures`. With the hopes that eventually most of `futures` will be part of
171+
stdlib.
172+
162173
## FAQ
163174
### When is it useful to switch Runtimes?
164175
What might be the best solution now, might not stay the best in the future. As Rust grows, so will

0 commit comments

Comments
 (0)