Skip to content

Commit 70769d8

Browse files
authored
Merge pull request #94 from async-rs/remove-async_await-gate
remove async_await feature gate
2 parents bcb4910 + 63ad786 commit 70769d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1
-206
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ $ cargo add async-std
3838
## Hello world
3939

4040
```rust
41-
#![feature(async_await)]
42-
4341
use async_std::task;
4442

4543
fn main() {
@@ -52,8 +50,6 @@ fn main() {
5250
## Low-Friction Sockets with Built-In Timeouts
5351

5452
```rust
55-
#![feature(async_await)]
56-
5753
use std::time::Duration;
5854

5955
use async_std::{

benches/task_local.rs

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

33
extern crate test;
44

docs/src/tutorial/accept_loop.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Let's implement the scaffold of the server: a loop that binds a TCP socket to an
66
First of all, let's add required import boilerplate:
77

88
```rust
9-
#![feature(async_await)]
10-
119
use std::net::ToSocketAddrs; // 1
1210

1311
use async_std::{

docs/src/tutorial/all_together.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
At this point, we only need to start the broker to get a fully-functioning (in the happy case!) chat:
55

66
```rust
7-
#![feature(async_await)]
8-
97
use std::{
108
net::ToSocketAddrs,
119
sync::Arc,

docs/src/tutorial/handling_disconnection.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ This also allows us to establish a useful invariant that the message channel str
9595
The final code looks like this:
9696

9797
```rust
98-
#![feature(async_await)]
99-
10098
use std::{
10199
net::ToSocketAddrs,
102100
sync::Arc,

docs/src/tutorial/implementing_a_client.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Programming this with threads is cumbersome, especially when implementing clean
1515
With async, we can just use the `select!` macro.
1616

1717
```rust
18-
#![feature(async_await)]
19-
2018
use std::net::ToSocketAddrs;
2119

2220
use futures::select;

examples/hello-world.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Spawns a task that says hello.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
async fn say_hi() {

examples/line-count.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Counts the number of lines in a file given as an argument.
22
3-
#![feature(async_await)]
4-
53
use std::env::args;
64

75
use async_std::fs::File;

examples/list-dir.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Lists files in a directory given as an argument.
22
3-
#![feature(async_await)]
4-
53
use std::env::args;
64

75
use async_std::fs;

examples/logging.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Prints the runtime's execution log on the standard output.
22
3-
#![feature(async_await)]
4-
53
use async_std::task;
64

75
fn main() {

0 commit comments

Comments
 (0)