Skip to content

Commit 0c7fa20

Browse files
committed
Stage 0.3.0 release
1 parent 133f9ce commit 0c7fa20

File tree

23 files changed

+133
-118
lines changed

23 files changed

+133
-118
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# 0.3.0 - 2019-11-5
2+
* Stable release along with stable async/await!
3+
* Added async/await to default features (#1953)
4+
* Changed `Spawn` trait and `FuturesUnordered::push` to take `&self` (#1950)
5+
* Moved `Spawn` and `FutureObj` out of `futures-core` and into `futures-task (#1925)
6+
* Changed case convention for feature names (#1937)
7+
* Added `executor` feature (#1949)
8+
* Moved `copy_into`/`copy_buf_into` (#1948)
9+
* Changed `SinkExt::send_all` to accept a `TryStream` (#1946)
10+
* Removed `ThreadPool::run` (#1944)
11+
* Changed to use our own definition of `io::Cursor` (#1943)
12+
* Removed `BufReader::poll_seek_relative` (#1938)
13+
* Changed `skip` to take a `usize` rather than `u64` (#1931)
14+
* Removed `Stream` impl for `VecDeque` (#1930)
15+
* Renamed `Peekable::peek` to `poll_peek` (#1928)
16+
* Added immutable iterators for `FuturesUnordered` (#1922)
17+
* Made `ThreadPool` optional (#1910)
18+
* Renamed `oneshot::Sender::poll_cancel` to `poll_canceled` (#1908)
19+
* Added some missing `Clone` implementations
20+
* Documentation fixes
21+
122
# 0.3.0-alpha.19 - 2019-9-25
223
* Stabilized the `async-await` feature (#1816)
324
* Made `async-await` feature no longer require `std` feature (#1815)
@@ -216,7 +237,7 @@
216237
* `FuturesUnordered` optimization: Since the context stores a `&LocalWaker` reference, it was possible to avoid cloning the `Arc` of the waker
217238
* Futures-rs now uses Clippy
218239
* We now use in-band lifetimes
219-
* The `join!` and `select!` macros are now exposed by the `futures-preview` crate
240+
* The `join!` and `select!` macros are now exposed by the `futures` crate
220241
* The project logo was added to the `README.md`
221242
* `sink::MapErr::get_pinned_mut` is now called `get_pin_mut`
222243
* We now use the unstable `use_extern_macros` feature for macro reexports

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<img alt="Build Status" src="https://travis-ci.com/rust-lang-nursery/futures-rs.svg?branch=master">
1212
</a>
1313

14-
<a href="https://crates.io/crates/futures-preview">
15-
<img alt="Crates.io" src="https://img.shields.io/crates/v/futures-preview.svg">
14+
<a href="https://crates.io/crates/futures">
15+
<img alt="Crates.io" src="https://img.shields.io/crates/v/futures.svg">
1616
</a>
1717

1818
<a href="https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html">
@@ -21,29 +21,34 @@
2121
</p>
2222

2323
<p align="center">
24-
<a href="https://docs.rs/futures-preview/">
24+
<a href="https://docs.rs/futures/">
2525
Documentation
2626
</a> | <a href="https://rust-lang-nursery.github.io/futures-rs/">
2727
Website
2828
</a>
2929
</p>
3030

31+
`futures-rs` is a library providing the foundations for asynchronous programming in Rust.
32+
It includes key trait definitions like `Stream`, as well as utilities like `join!`,
33+
`select!`, and various futures combinator methods which enable expressive asynchronous
34+
control flow.
35+
3136
## Usage
3237

3338
Add this to your `Cargo.toml`:
3439

3540
```toml
3641
[dependencies]
37-
futures-preview = "=0.3.0-alpha.19"
42+
futures = "0.3"
3843
```
3944

4045
Now, you can use futures-rs:
4146

4247
```rust
43-
use futures::future::Future; // Note: It's not `futures_preview`
48+
use futures::future::Future;
4449
```
4550

46-
The current futures-rs requires Rust 1.36 or later.
51+
The current futures-rs requires Rust 1.39 or later.
4752

4853
### Feature `std`
4954

@@ -53,20 +58,9 @@ a `#[no_std]` environment, use:
5358

5459
```toml
5560
[dependencies]
56-
futures-preview = { version = "=0.3.0-alpha.19", default-features = false }
57-
```
58-
59-
### Feature `async-await`
60-
61-
The `async-await` feature provides several convenient features using async/await. To use futures-rs with async/await, use:
62-
63-
```toml
64-
[dependencies]
65-
futures-preview = { version = "=0.3.0-alpha.19", features = ["async-await"] }
61+
futures = { version = "0.3.0", default-features = false }
6662
```
6763

68-
The current `async-await` feature requires Rust 1.39 or later.
69-
7064
# License
7165

7266
This project is licensed under either of

futures-channel/Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "futures-channel-preview"
2+
name = "futures-channel"
33
edition = "2018"
4-
version = "0.3.0-alpha.19"
4+
version = "0.3.0"
55
authors = ["Alex Crichton <[email protected]>"]
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/rust-lang-nursery/futures-rs"
88
homepage = "https://rust-lang-nursery.github.io/futures-rs"
9-
documentation = "https://docs.rs/futures-channel-preview/0.3.0-alpha.19"
9+
documentation = "https://docs.rs/futures-channel/0.3.0"
1010
description = """
1111
Channels for asynchronous communication using futures-rs.
1212
"""
@@ -16,20 +16,20 @@ name = "futures_channel"
1616

1717
[features]
1818
default = ["std"]
19-
std = ["alloc", "futures-core-preview/std"]
20-
alloc = ["futures-core-preview/alloc"]
21-
sink = ["futures-sink-preview"]
19+
std = ["alloc", "futures-core/std"]
20+
alloc = ["futures-core/alloc"]
21+
sink = ["futures-sink"]
2222

2323
# Unstable features
2424
# These features are outside of the normal semver guarantees and require the
2525
# `unstable` feature as an explicit opt-in to unstable API.
26-
unstable = ["futures-core-preview/unstable"]
27-
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
26+
unstable = ["futures-core/unstable"]
27+
cfg-target-has-atomic = ["futures-core/cfg-target-has-atomic"]
2828

2929
[dependencies]
30-
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19", default-features = false }
31-
futures-sink-preview = { path = "../futures-sink", version = "=0.3.0-alpha.19", default-features = false, optional = true }
30+
futures-core = { path = "../futures-core", version = "0.3.0", default-features = false }
31+
futures-sink = { path = "../futures-sink", version = "0.3.0", default-features = false, optional = true }
3232

3333
[dev-dependencies]
34-
futures-preview = { path = "../futures", version = "=0.3.0-alpha.19", default-features = true }
35-
futures-test-preview = { path = "../futures-test", version = "=0.3.0-alpha.19", default-features = true }
34+
futures = { path = "../futures", version = "0.3.0", default-features = true }
35+
futures-test = { path = "../futures-test", version = "0.3.0", default-features = true }

futures-channel/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1919

20-
#![doc(html_root_url = "https://docs.rs/futures-channel-preview/0.3.0-alpha.19")]
20+
#![doc(html_root_url = "https://docs.rs/futures-channel/0.3.0")]
2121

2222
#[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]
2323
compile_error!("The `cfg-target-has-atomic` feature requires the `unstable` feature as an explicit opt-in to unstable features");

futures-core/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "futures-core-preview"
2+
name = "futures-core"
33
edition = "2018"
4-
version = "0.3.0-alpha.19"
4+
version = "0.3.0"
55
authors = ["Alex Crichton <[email protected]>"]
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/rust-lang-nursery/futures-rs"
88
homepage = "https://rust-lang-nursery.github.io/futures-rs"
9-
documentation = "https://docs.rs/futures-core-preview/0.3.0-alpha.19"
9+
documentation = "https://docs.rs/futures-core/0.3.0"
1010
description = """
1111
The core traits and types in for the `futures` library.
1212
"""
@@ -28,4 +28,4 @@ cfg-target-has-atomic = []
2828
[dependencies]
2929

3030
[dev-dependencies]
31-
futures-preview = { path = "../futures", version = "=0.3.0-alpha.19" }
31+
futures = { path = "../futures", version = "0.3.0" }

futures-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1313

14-
#![doc(html_root_url = "https://docs.rs/futures-core-preview/0.3.0-alpha.19")]
14+
#![doc(html_root_url = "https://docs.rs/futures-core/0.3.0")]
1515

1616
#[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]
1717
compile_error!("The `cfg-target-has-atomic` feature requires the `unstable` feature as an explicit opt-in to unstable features");

futures-executor/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "futures-executor-preview"
2+
name = "futures-executor"
33
edition = "2018"
4-
version = "0.3.0-alpha.19"
4+
version = "0.3.0"
55
authors = ["Alex Crichton <[email protected]>"]
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/rust-lang-nursery/futures-rs"
88
homepage = "https://rust-lang-nursery.github.io/futures-rs"
9-
documentation = "https://docs.rs/futures-executor-preview/0.3.0-alpha.19"
9+
documentation = "https://docs.rs/futures-executor/0.3.0"
1010
description = """
1111
Executors for asynchronous tasks based on the futures-rs library.
1212
"""
@@ -16,14 +16,14 @@ name = "futures_executor"
1616

1717
[features]
1818
default = ["std"]
19-
std = ["futures-core-preview/std", "futures-task-preview/std", "futures-util-preview/std"]
19+
std = ["futures-core/std", "futures-task/std", "futures-util/std"]
2020
thread-pool = ["std", "num_cpus"]
2121

2222
[dependencies]
23-
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19", default-features = false }
24-
futures-task-preview = { path = "../futures-task", version = "=0.3.0-alpha.19", default-features = false }
25-
futures-util-preview = { path = "../futures-util", version = "=0.3.0-alpha.19", default-features = false }
23+
futures-core = { path = "../futures-core", version = "0.3.0", default-features = false }
24+
futures-task = { path = "../futures-task", version = "0.3.0", default-features = false }
25+
futures-util = { path = "../futures-util", version = "0.3.0", default-features = false }
2626
num_cpus = { version = "1.8.0", optional = true }
2727

2828
[dev-dependencies]
29-
futures-preview = { path = "../futures", version = "=0.3.0-alpha.19" }
29+
futures = { path = "../futures", version = "0.3.0" }

futures-executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1414

15-
#![doc(html_root_url = "https://docs.rs/futures-executor-preview/0.3.0-alpha.19")]
15+
#![doc(html_root_url = "https://docs.rs/futures-executor/0.3.0")]
1616

1717
#[cfg(feature = "std")]
1818
mod local_pool;

futures-io/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "futures-io-preview"
2+
name = "futures-io"
33
edition = "2018"
4-
version = "0.3.0-alpha.19"
4+
version = "0.3.0"
55
authors = ["Alex Crichton <[email protected]>"]
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/rust-lang-nursery/futures-rs"
88
homepage = "https://rust-lang-nursery.github.io/futures-rs"
9-
documentation = "https://docs.rs/futures-io-preview/0.3.0-alpha.19"
9+
documentation = "https://docs.rs/futures-io/0.3.0"
1010
description = """
1111
The `AsyncRead` and `AsyncWrite` traits for the futures-rs library.
1212
"""

futures-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
2121

22-
#![doc(html_root_url = "https://docs.rs/futures-io-preview/0.3.0-alpha.19")]
22+
#![doc(html_root_url = "https://docs.rs/futures-io/0.3.0")]
2323

2424
#[cfg(all(feature = "read-initializer", not(feature = "unstable")))]
2525
compile_error!("The `read-initializer` feature requires the `unstable` feature as an explicit opt-in to unstable features");

0 commit comments

Comments
 (0)