diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bbeb123ca..a4ba7d4ba9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# 0.3.0-alpha.3 - 2018-08-15 +* Compatibilty with newest nightly +* Futures 0.1 compatibility layer including Tokio compatibility +* Added `spawn!` and `spawn_with_handle!` macros +* Added `SpawnExt` methods `spawn` and `spawn_with_handle` +* Extracted pin macros into `pin_utils` crate +* Added `FutureExt` combinators `boxed` and `unit_error` +* Remove prelude from all doc examples (The prelude is still recommended for usage in playground examples. However, for doc examples we determined that fully expanded imports are more helpful) +* Improvements to `select!` and `join!` macros +* Added `try_join!` macro +* Added `StreamExt` combinator methods `try_join` and `for_each_concurrent` +* Added `TryStreamExt` combinator methdos `into_stream`, `try_filter_map`, `try_skip_while`, `try_for_each_concurrent` and `try_buffer_unordered` +* Fix stream termination bug in `StreamExt::buffered` and `StreamExt::buffer_unordered` +* Added docs for `StreamExt::buffered`, `StreamExt::buffer_unordered` +* Added `task::local_waker_ref_from_nonlocal` and `task::local_waker_ref` functions +* CI improvements +* Doc improvements to `StreamExt::select` + # 0.3.0-alpha.2 - 2018-07-30 * The changelog is back! * Compatiblity with futures API in latest nightly diff --git a/README.md b/README.md index 21b0570040..1fdf6ca686 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@

- + Documentation | Website @@ -30,7 +30,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -futures-preview = "0.3.0-alpha.2" +futures-preview = "0.3.0-alpha.3" ``` Now, you can use futures-rs: @@ -47,7 +47,7 @@ a `#[no_std]` environment, use: ```toml [dependencies] -futures-preview = { version = "0.3.0-alpha.2", default-features = false } +futures-preview = { version = "0.3.0-alpha.3", default-features = false } ``` # License diff --git a/futures-channel/Cargo.toml b/futures-channel/Cargo.toml index e7a0c7aa61..2594679365 100644 --- a/futures-channel/Cargo.toml +++ b/futures-channel/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-channel-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_channel" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_channel" description = """ Channels for asynchronous communication using futures-rs. """ @@ -21,8 +21,8 @@ std = ["futures-core-preview/std"] default = ["std"] [dependencies] -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false } +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false } [dev-dependencies] -futures-preview = { path = "../futures", version = "0.3.0-alpha.2", default-features = true } +futures-preview = { path = "../futures", version = "0.3.0-alpha.3", default-features = true } pin-utils = "0.1.0-alpha.1" diff --git a/futures-channel/src/lib.rs b/futures-channel/src/lib.rs index e3652b4529..7c3cdd7f60 100644 --- a/futures-channel/src/lib.rs +++ b/futures-channel/src/lib.rs @@ -10,7 +10,7 @@ #![warn(missing_docs, missing_debug_implementations)] #![deny(bare_trait_objects)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_channel")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_channel")] macro_rules! if_std { ($($i:item)*) => ($( diff --git a/futures-core/Cargo.toml b/futures-core/Cargo.toml index a826cb1f8a..5bd936d7d5 100644 --- a/futures-core/Cargo.toml +++ b/futures-core/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-core-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_core" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_core" description = """ The core traits and types in for the `futures` library. """ diff --git a/futures-core/src/lib.rs b/futures-core/src/lib.rs index 69701cd4cf..686f9e7083 100644 --- a/futures-core/src/lib.rs +++ b/futures-core/src/lib.rs @@ -7,7 +7,7 @@ #![warn(missing_docs, missing_debug_implementations)] #![deny(bare_trait_objects)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_core")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_core")] #[doc(hidden)] pub use crate::future::Future; #[doc(hidden)] pub use crate::future::TryFuture; diff --git a/futures-executor/Cargo.toml b/futures-executor/Cargo.toml index 1edbbf56a5..4ca6f5a43d 100644 --- a/futures-executor/Cargo.toml +++ b/futures-executor/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-executor-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_executor" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_executor" description = """ Executors for asynchronous tasks based on the futures-rs library. """ @@ -21,13 +21,13 @@ std = ["num_cpus", "futures-core-preview/std", "futures-util-preview/std", "futu default = ["std"] [dependencies] -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false} -futures-util-preview = { path = "../futures-util", version = "0.3.0-alpha.2", default-features = false} -futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.2", default-features = false} +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false} +futures-util-preview = { path = "../futures-util", version = "0.3.0-alpha.3", default-features = false} +futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.3", default-features = false} num_cpus = { version = "1.8.0", optional = true } lazy_static = { version = "1.1.0", optional = true } pin-utils = "0.1.0-alpha.1" [dev-dependencies] -futures-preview = { path = "../futures", version = "0.3.0-alpha.2" } -futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.2" } +futures-preview = { path = "../futures", version = "0.3.0-alpha.3" } +futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.3" } diff --git a/futures-executor/src/lib.rs b/futures-executor/src/lib.rs index 7ff7a8df46..77acfc8b04 100644 --- a/futures-executor/src/lib.rs +++ b/futures-executor/src/lib.rs @@ -7,7 +7,7 @@ #![warn(missing_docs, missing_debug_implementations)] #![deny(bare_trait_objects)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_executor")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_executor")] macro_rules! if_std { ($($i:item)*) => ($( diff --git a/futures-io/Cargo.toml b/futures-io/Cargo.toml index 64fb964760..01c006fe12 100644 --- a/futures-io/Cargo.toml +++ b/futures-io/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-io-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_io" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_io" description = """ The `AsyncRead` and `AsyncWrite` traits for the futures-rs library. """ @@ -21,9 +21,9 @@ std = ["futures-core-preview/std", "iovec"] default = ["std"] [dependencies] -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false } +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false } iovec = { version = "0.1", optional = true } [dev-dependencies] -futures-preview = { path = "../futures", version = "0.3.0-alpha.2" } +futures-preview = { path = "../futures", version = "0.3.0-alpha.3" } assert_matches = "1.3.0" diff --git a/futures-io/src/lib.rs b/futures-io/src/lib.rs index 88ae924bde..9a7b6e53aa 100644 --- a/futures-io/src/lib.rs +++ b/futures-io/src/lib.rs @@ -9,7 +9,7 @@ #![warn(missing_docs, missing_debug_implementations)] #![deny(bare_trait_objects)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_io")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_io")] #![feature(futures_api)] diff --git a/futures-sink/Cargo.toml b/futures-sink/Cargo.toml index d0c8112c07..fc59de4dd4 100644 --- a/futures-sink/Cargo.toml +++ b/futures-sink/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-sink-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_sink" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_sink" description = """ The asynchronous `Sink` trait for the futures-rs library. """ @@ -22,5 +22,5 @@ default = ["std"] [dependencies] either = { version = "1.4", default-features = false, optional = true } -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false } -futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.2", default-features = false } +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false } +futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.3", default-features = false } diff --git a/futures-sink/src/lib.rs b/futures-sink/src/lib.rs index bfe814bba0..ebe193c912 100644 --- a/futures-sink/src/lib.rs +++ b/futures-sink/src/lib.rs @@ -5,7 +5,7 @@ #![no_std] #![warn(missing_docs, missing_debug_implementations)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_sink")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_sink")] #![feature(pin, arbitrary_self_types, futures_api)] diff --git a/futures-util/Cargo.toml b/futures-util/Cargo.toml index a9135d172f..78150dfa4e 100644 --- a/futures-util/Cargo.toml +++ b/futures-util/Cargo.toml @@ -3,12 +3,12 @@ cargo-features = ["edition"] [package] name = "futures-util-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_util" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_util" description = """ Common utilities and extension traits for the futures-rs library. """ @@ -25,10 +25,10 @@ bench = [] nightly = [] [dependencies] -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false } -futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.2", default-features = false } -futures-io-preview = { path = "../futures-io", version = "0.3.0-alpha.2", default-features = false } -futures-sink-preview = { path = "../futures-sink", version = "0.3.0-alpha.2", default-features = false} +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false } +futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.3", default-features = false } +futures-io-preview = { path = "../futures-io", version = "0.3.0-alpha.3", default-features = false } +futures-sink-preview = { path = "../futures-sink", version = "0.3.0-alpha.3", default-features = false} either = { version = "1.4", default-features = false } slab = { version = "0.4", optional = true } futures = { version = "0.1", optional = true } @@ -36,6 +36,6 @@ tokio-executor = { version = "0.1.2", optional = true } pin-utils = "0.1.0-alpha.1" [dev-dependencies] -futures-preview = { path = "../futures", version = "0.3.0-alpha.2" } -futures-executor-preview = { path = "../futures-executor", version = "0.3.0-alpha.2" } +futures-preview = { path = "../futures", version = "0.3.0-alpha.3" } +futures-executor-preview = { path = "../futures-executor", version = "0.3.0-alpha.3" } # futures-channel = { path = "../futures-channel", version = "0.2.0" } diff --git a/futures-util/src/lib.rs b/futures-util/src/lib.rs index 4d941d6d9f..81116c1888 100644 --- a/futures-util/src/lib.rs +++ b/futures-util/src/lib.rs @@ -10,7 +10,7 @@ #![deny(bare_trait_objects)] #![allow(unknown_lints)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures_util")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures_util")] macro_rules! if_std { ($($i:item)*) => ($( diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 7c3952f532..a9f7b74de6 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -3,14 +3,14 @@ cargo-features = ["edition"] [package] name = "futures-preview" edition = "2018" -version = "0.3.0-alpha.2" +version = "0.3.0-alpha.3" authors = ["Alex Crichton "] license = "MIT OR Apache-2.0" readme = "../README.md" keywords = ["futures", "async", "future"] repository = "https://github.com/rust-lang-nursery/futures-rs" homepage = "https://rust-lang-nursery.github.io/futures-rs" -documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures" +documentation = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures" description = """ An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces. @@ -25,12 +25,12 @@ travis-ci = { repository = "rust-lang-nursery/futures-rs" } appveyor = { repository = "rust-lang-nursery/futures-rs" } [dependencies] -futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.2", default-features = false } -futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.2", default-features = false } -futures-executor-preview = { path = "../futures-executor", version = "0.3.0-alpha.2", default-features = false } -futures-io-preview = { path = "../futures-io", version = "0.3.0-alpha.2", default-features = false } -futures-sink-preview = { path = "../futures-sink", version = "0.3.0-alpha.2", default-features = false } -futures-util-preview = { path = "../futures-util", version = "0.3.0-alpha.2", default-features = false } +futures-core-preview = { path = "../futures-core", version = "0.3.0-alpha.3", default-features = false } +futures-channel-preview = { path = "../futures-channel", version = "0.3.0-alpha.3", default-features = false } +futures-executor-preview = { path = "../futures-executor", version = "0.3.0-alpha.3", default-features = false } +futures-io-preview = { path = "../futures-io", version = "0.3.0-alpha.3", default-features = false } +futures-sink-preview = { path = "../futures-sink", version = "0.3.0-alpha.3", default-features = false } +futures-util-preview = { path = "../futures-util", version = "0.3.0-alpha.3", default-features = false } [dev-dependencies] pin-utils = "0.1.0-alpha.1" diff --git a/futures/src/lib.rs b/futures/src/lib.rs index 53ea8ef76a..e2bc50ad73 100644 --- a/futures/src/lib.rs +++ b/futures/src/lib.rs @@ -28,7 +28,7 @@ #![warn(missing_docs, missing_debug_implementations)] #![deny(bare_trait_objects)] -#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.2/futures")] +#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.3/futures")] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]