chore: async_await is stable on nightly
This commit is contained in:
committed by
Sean McArthur
parent
b2c5d7f0bb
commit
85b1f669c0
@@ -3,8 +3,6 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use h2::client;
|
use h2::client;
|
||||||
|
|
||||||
use futures::*;
|
use futures::*;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use h2::client;
|
use h2::client;
|
||||||
use http::{HeaderMap, Request};
|
use http::{HeaderMap, Request};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use h2::server;
|
use h2::server;
|
||||||
|
|
||||||
use bytes::*;
|
use bytes::*;
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
//! ```rust, no_run
|
//! ```rust, no_run
|
||||||
//! #![feature(async_await)]
|
|
||||||
//!
|
//!
|
||||||
//! use h2::client;
|
//! use h2::client;
|
||||||
//!
|
//!
|
||||||
@@ -212,7 +211,6 @@ pub struct ReadySendRequest<B: IntoBuf> {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client;
|
/// # use h2::client;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
@@ -291,7 +289,6 @@ pub struct PushPromises {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -373,7 +370,6 @@ where
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use http::*;
|
/// # use http::*;
|
||||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||||
@@ -433,7 +429,6 @@ where
|
|||||||
/// Sending a request with no body
|
/// Sending a request with no body
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use http::*;
|
/// # use http::*;
|
||||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||||
@@ -458,7 +453,6 @@ where
|
|||||||
/// Sending a request with a body and trailers
|
/// Sending a request with a body and trailers
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use http::*;
|
/// # use http::*;
|
||||||
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
/// # async fn doc(send_request: SendRequest<&'static [u8]>)
|
||||||
@@ -604,7 +598,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -647,7 +640,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -683,7 +675,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -718,7 +709,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -759,7 +749,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -809,7 +798,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -851,7 +839,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -897,7 +884,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -943,7 +929,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use std::time::Duration;
|
/// # use std::time::Duration;
|
||||||
@@ -982,7 +967,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use std::time::Duration;
|
/// # use std::time::Duration;
|
||||||
@@ -1042,7 +1026,6 @@ impl Builder {
|
|||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// # use bytes::Bytes;
|
/// # use bytes::Bytes;
|
||||||
@@ -1064,7 +1047,6 @@ impl Builder {
|
|||||||
/// type will be `&'static [u8]`.
|
/// type will be `&'static [u8]`.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
/// #
|
/// #
|
||||||
@@ -1119,7 +1101,6 @@ impl Default for Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::client;
|
/// # use h2::client;
|
||||||
/// # use h2::client::*;
|
/// # use h2::client::*;
|
||||||
|
|||||||
@@ -81,7 +81,6 @@
|
|||||||
#![doc(html_root_url = "https://docs.rs/h2/0.1.25")]
|
#![doc(html_root_url = "https://docs.rs/h2/0.1.25")]
|
||||||
#![deny(missing_debug_implementations, missing_docs)]
|
#![deny(missing_debug_implementations, missing_docs)]
|
||||||
#![cfg_attr(test, deny(warnings))]
|
#![cfg_attr(test, deny(warnings))]
|
||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
macro_rules! proto_err {
|
macro_rules! proto_err {
|
||||||
(conn: $($msg:tt)+) => {
|
(conn: $($msg:tt)+) => {
|
||||||
|
|||||||
@@ -64,7 +64,6 @@
|
|||||||
//! will use the HTTP/2.0 protocol without prior negotiation.
|
//! will use the HTTP/2.0 protocol without prior negotiation.
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! #![feature(async_await)]
|
|
||||||
//! use h2::server;
|
//! use h2::server;
|
||||||
//! use http::{Response, StatusCode};
|
//! use http::{Response, StatusCode};
|
||||||
//! use tokio::net::TcpListener;
|
//! use tokio::net::TcpListener;
|
||||||
@@ -175,7 +174,6 @@ pub struct Handshake<T, B: IntoBuf = Bytes> {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::server;
|
/// # use h2::server;
|
||||||
/// # use h2::server::*;
|
/// # use h2::server::*;
|
||||||
@@ -311,7 +309,6 @@ const PREFACE: [u8; 24] = *b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use tokio_io::*;
|
/// # use tokio_io::*;
|
||||||
/// # use h2::server;
|
/// # use h2::server;
|
||||||
/// # use h2::server::*;
|
/// # use h2::server::*;
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ impl<B: IntoBuf> SendStream<B> {
|
|||||||
/// is sent. For example:
|
/// is sent. For example:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # use h2::*;
|
/// # use h2::*;
|
||||||
/// # async fn doc(mut send_stream: SendStream<&'static [u8]>) {
|
/// # async fn doc(mut send_stream: SendStream<&'static [u8]>) {
|
||||||
/// send_stream.reserve_capacity(100);
|
/// send_stream.reserve_capacity(100);
|
||||||
@@ -571,7 +570,6 @@ impl PingPong {
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(async_await)]
|
|
||||||
/// # async fn doc(mut ping_pong: h2::PingPong) {
|
/// # async fn doc(mut ping_pong: h2::PingPong) {
|
||||||
/// // let mut ping_pong = ...
|
/// // let mut ping_pong = ...
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use futures::stream::FuturesUnordered;
|
use futures::stream::FuturesUnordered;
|
||||||
use futures::Stream;
|
use futures::Stream;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
//! Utilities to support tests.
|
//! Utilities to support tests.
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::future::{join, ready, select, Either};
|
use futures::future::{join, ready, select, Either};
|
||||||
use futures::stream::FuturesUnordered;
|
use futures::stream::FuturesUnordered;
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::future::join;
|
use futures::future::join;
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::future::join;
|
use futures::future::join;
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
use futures::future::{join, join4};
|
use futures::future::{join, join4};
|
||||||
use futures::{StreamExt, TryStreamExt};
|
use futures::{StreamExt, TryStreamExt};
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::{FutureExt, StreamExt, TryFutureExt};
|
use futures::{FutureExt, StreamExt, TryFutureExt};
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::channel::oneshot;
|
use futures::channel::oneshot;
|
||||||
use futures::future::join;
|
use futures::future::join;
|
||||||
use futures::{StreamExt, TryStreamExt};
|
use futures::{StreamExt, TryStreamExt};
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::future::join;
|
use futures::future::join;
|
||||||
use futures::{FutureExt, StreamExt};
|
use futures::{FutureExt, StreamExt};
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
use futures::future::join;
|
use futures::future::join;
|
||||||
use futures::{StreamExt, TryStreamExt};
|
use futures::{StreamExt, TryStreamExt};
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
use futures::future::{join, poll_fn};
|
use futures::future::{join, poll_fn};
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
use futures::future::{join, join3, lazy, try_join};
|
use futures::future::{join, join3, lazy, try_join};
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(async_await)]
|
|
||||||
|
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use h2_support::prelude::*;
|
use h2_support::prelude::*;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user