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

Commit 2d5af87

Browse files
marcelbuesingyoshuawuyts
authored andcommitted
remove futures_api feature flag (#17)
1 parent a96b843 commit 2d5af87

File tree

22 files changed

+38
-38
lines changed

22 files changed

+38
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ asynchronous software.
6969
## Examples
7070
__UDP Echo Server__
7171
```rust
72-
#![feature(async_await, await_macro, futures_api)]
72+
#![feature(async_await, await_macro)]
7373

7474
use runtime::net::UdpSocket;
7575

benches/baseline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(test, async_await, await_macro, futures_api)]
1+
#![feature(test, async_await, await_macro)]
22

33
extern crate test;
44

benches/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(test, async_await, await_macro, futures_api)]
1+
#![feature(test, async_await, await_macro)]
22
#![warn(rust_2018_idioms)]
33

44
extern crate test;

benches/tokio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(test, async_await, await_macro, futures_api)]
1+
#![feature(test, async_await, await_macro)]
22
#![warn(rust_2018_idioms)]
33

44
extern crate test;

examples/guessing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! $ nc localhost 8080
88
//! ```
99
10-
#![feature(async_await, await_macro, futures_api)]
10+
#![feature(async_await, await_macro)]
1111

1212
use futures::prelude::*;
1313
use rand::Rng;

examples/hello.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
async fn say_hi() {
44
println!("Hello world! 🤖");

examples/tcp-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! $ cargo run --example tcp-echo
77
//! ```
88
9-
#![feature(async_await, await_macro, futures_api)]
9+
#![feature(async_await, await_macro)]
1010

1111
use futures::prelude::*;
1212
use runtime::net::TcpStream;

examples/tcp-echo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Run the server and connect to it with `nc 127.0.0.1 8080`.
44
//! The server will wait for you to enter lines of text and then echo them back.
55
6-
#![feature(async_await, await_macro, futures_api)]
6+
#![feature(async_await, await_macro)]
77

88
use futures::prelude::*;
99
use runtime::net::TcpListener;

examples/tcp-proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! A TCP proxy server. Forwards connections from port 8081 to port 8080.
22
3-
#![feature(async_await, await_macro, futures_api)]
3+
#![feature(async_await, await_macro)]
44

55
use futures::prelude::*;
66
use futures::try_join;

examples/udp-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
//! UDP client.
44
//!

examples/udp-echo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
//! UDP echo server.
44
//!

runtime-attributes/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#![forbid(unsafe_code, future_incompatible, rust_2018_idioms)]
55
#![deny(missing_debug_implementations, nonstandard_style)]
6-
#![feature(async_await, await_macro, futures_api)]
6+
#![feature(async_await, await_macro)]
77
#![recursion_limit = "512"]
88

99
extern crate proc_macro;
@@ -17,7 +17,7 @@ use syn::spanned::Spanned;
1717
/// # Examples
1818
///
1919
/// ```
20-
/// #![feature(async_await, futures_api)]
20+
/// #![feature(async_await)]
2121
///
2222
/// #[runtime::main]
2323
/// async fn main() -> std::io::Result<()> {
@@ -65,7 +65,7 @@ pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
6565
/// # Examples
6666
///
6767
/// ```
68-
/// #![feature(async_await, futures_api)]
68+
/// #![feature(async_await)]
6969
///
7070
/// #[runtime::test]
7171
/// async fn main() -> std::io::Result<()> {
@@ -107,7 +107,7 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
107107
/// # Examples
108108
///
109109
/// ```
110-
/// #![feature(async_await, await_macro, futures_api, test)]
110+
/// #![feature(async_await, await_macro, test)]
111111
///
112112
/// extern crate test;
113113
///

runtime-native/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! A cross-platform asynchronous [Runtime](https://github.com/rustasync/runtime). See the [Runtime
22
//! documentation](https://docs.rs/runtime) for more details.
33
4-
#![feature(async_await, await_macro, futures_api)]
4+
#![feature(async_await, await_macro)]
55
#![deny(unsafe_code)]
66
#![warn(
77
missing_debug_implementations,

runtime-raw/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! perform IO, then there's no need to bother with any of these types as they will have been
66
//! implemented for you already.
77
8-
#![feature(futures_api, async_await, await_macro)]
8+
#![feature(async_await, await_macro)]
99
#![deny(unsafe_code)]
1010
#![warn(
1111
missing_debug_implementations,

runtime-tokio/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! [Runtime](https://github.com/rustasync/runtime). See the [Runtime
33
//! documentation](https://docs.rs/runtime) for more details.
44
5-
#![feature(async_await, await_macro, futures_api)]
5+
#![feature(async_await, await_macro)]
66
#![warn(
77
missing_debug_implementations,
88
missing_docs,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! ## Examples
1717
//! __UDP Echo Server__
1818
//! ```no_run
19-
//! #![feature(async_await, await_macro, futures_api)]
19+
//! #![feature(async_await, await_macro)]
2020
//!
2121
//! use runtime::net::UdpSocket;
2222
//!
@@ -85,7 +85,7 @@
8585
//! - [Runtime Tokio](https://docs.rs/runtime-tokio) provides a thread pool, bindings to the OS, and
8686
//! a work-stealing scheduler.
8787
88-
#![feature(futures_api, async_await, await_macro)]
88+
#![feature(async_await, await_macro)]
8989
#![deny(unsafe_code)]
9090
#![warn(
9191
missing_debug_implementations,

src/net/tcp.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use futures::task::{Context, Poll};
4545
///
4646
/// ## Examples
4747
/// ```no_run
48-
/// #![feature(async_await, await_macro, futures_api)]
48+
/// #![feature(async_await, await_macro)]
4949
///
5050
/// use futures::prelude::*;
5151
/// use runtime::net::TcpStream;
@@ -84,7 +84,7 @@ impl TcpStream {
8484
/// # Examples
8585
///
8686
/// ```no_run
87-
/// #![feature(async_await, await_macro, futures_api)]
87+
/// #![feature(async_await, await_macro)]
8888
/// use runtime::net::TcpStream;
8989
///
9090
/// # async fn connect_localhost() -> std::io::Result<()> {
@@ -104,7 +104,7 @@ impl TcpStream {
104104
///
105105
/// ## Examples
106106
/// ```no_run
107-
/// #![feature(async_await, await_macro, futures_api)]
107+
/// #![feature(async_await, await_macro)]
108108
/// use runtime::net::TcpStream;
109109
/// use std::net::{IpAddr, Ipv4Addr};
110110
///
@@ -124,7 +124,7 @@ impl TcpStream {
124124
///
125125
/// ## Examples
126126
/// ```no_run
127-
/// #![feature(async_await, await_macro, futures_api)]
127+
/// #![feature(async_await, await_macro)]
128128
/// use runtime::net::TcpStream;
129129
/// use std::net::{IpAddr, Ipv4Addr};
130130
///
@@ -150,7 +150,7 @@ impl TcpStream {
150150
/// # Examples
151151
///
152152
/// ```no_run
153-
/// #![feature(async_await, await_macro, futures_api)]
153+
/// #![feature(async_await, await_macro)]
154154
///
155155
/// use std::net::Shutdown;
156156
/// use runtime::net::TcpStream;
@@ -291,7 +291,7 @@ impl fmt::Debug for Connect {
291291
///
292292
/// # Examples
293293
/// ```ignore
294-
/// #![feature(async_await, await_macro, futures_api)]
294+
/// #![feature(async_await, await_macro)]
295295
///
296296
/// use futures::prelude::*;
297297
/// use runtime::net::TcpListener;
@@ -367,7 +367,7 @@ impl TcpListener {
367367
/// # Examples
368368
///
369369
/// ```no_run
370-
/// #![feature(async_await, await_macro, futures_api)]
370+
/// #![feature(async_await, await_macro)]
371371
///
372372
/// use runtime::net::TcpListener;
373373
/// use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
@@ -397,7 +397,7 @@ impl TcpListener {
397397
/// ## Examples
398398
///
399399
/// ```no_run
400-
/// #![feature(async_await, await_macro, futures_api)]
400+
/// #![feature(async_await, await_macro)]
401401
///
402402
/// use futures::prelude::*;
403403
/// use runtime::net::TcpListener;
@@ -430,7 +430,7 @@ impl TcpListener {
430430
/// ## Examples
431431
///
432432
/// ```no_run
433-
/// #![feature(async_await, await_macro, futures_api)]
433+
/// #![feature(async_await, await_macro)]
434434
///
435435
/// use futures::prelude::*;
436436
/// use runtime::net::TcpListener;

src/net/udp.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use std::task::{Context, Poll};
3636
///
3737
/// ## Examples
3838
/// ```no_run
39-
/// #![feature(async_await, await_macro, futures_api)]
39+
/// #![feature(async_await, await_macro)]
4040
///
4141
/// use runtime::net::UdpSocket;
4242
///
@@ -120,7 +120,7 @@ impl UdpSocket {
120120
/// # Examples
121121
///
122122
/// ```no_run
123-
/// #![feature(async_await, await_macro, futures_api)]
123+
/// #![feature(async_await, await_macro)]
124124
/// # use std::error::Error;
125125
/// use runtime::net::UdpSocket;
126126
///
@@ -163,7 +163,7 @@ impl UdpSocket {
163163
/// # Examples
164164
///
165165
/// ```no_run
166-
/// #![feature(async_await, await_macro, futures_api)]
166+
/// #![feature(async_await, await_macro)]
167167
/// # use std::error::Error;
168168
/// use runtime::net::UdpSocket;
169169
///
@@ -289,7 +289,7 @@ impl UdpSocket {
289289
/// # Examples
290290
///
291291
/// ```rust,no_run
292-
/// #![feature(async_await, await_macro, futures_api)]
292+
/// #![feature(async_await, await_macro)]
293293
///
294294
/// use runtime::net::UdpSocket;
295295
/// use std::net::Ipv4Addr;
@@ -316,7 +316,7 @@ impl UdpSocket {
316316
/// # Examples
317317
///
318318
/// ```rust,no_run
319-
/// #![feature(async_await, await_macro, futures_api)]
319+
/// #![feature(async_await, await_macro)]
320320
///
321321
/// use runtime::net::UdpSocket;
322322
/// use std::net::{Ipv6Addr, SocketAddr};

src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use futures::task::{Context, Poll};
1313
/// # Examples
1414
///
1515
/// ```
16-
/// #![feature(async_await, await_macro, futures_api)]
16+
/// #![feature(async_await, await_macro)]
1717
///
1818
/// #[runtime::main]
1919
/// async fn main() {

tests/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
use runtime_native::Native;
44

tests/tokio-current-thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
#[runtime::test(runtime_tokio::TokioCurrentThread)]
44
async fn spawn() {

tests/tokio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(async_await, await_macro, futures_api)]
1+
#![feature(async_await, await_macro)]
22

33
use runtime_tokio::Tokio;
44

0 commit comments

Comments
 (0)