Skip to content

Commit 37d8659

Browse files
author
Artem Vorotnikov
committed
Bump http-service dependency in tide-panic, set CI to nightly-2019-08-21, remove async_await feature flag everywhere
1 parent e5730ca commit 37d8659

File tree

35 files changed

+4
-61
lines changed

35 files changed

+4
-61
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: rust
2-
rust: nightly-2019-07-31
2+
rust: nightly-2019-08-21
33

44
before_script:
55
- >

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ Ecosystem WG, and **not ready for production use yet**.
6060
**Hello World**
6161

6262
```rust,no_run
63-
#![feature(async_await)]
64-
6563
fn main() -> Result<(), std::io::Error> {
6664
let mut app = tide::App::new();
6765
app.at("/").get(|_| async move { "Hello, world!" });

examples/body_types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
use serde::{Deserialize, Serialize};
32
use tide::{
43
error::ResultExt,

examples/catch_all.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
use tide::Context;
32

43
async fn echo_path(cx: Context<()>) -> String {

examples/cookies.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
use cookie::Cookie;
32
use tide::{cookies::ContextExt, middleware::CookiesMiddleware, Context};
43

examples/cors.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use http::header::HeaderValue;
42
use tide::middleware::{CorsMiddleware, CorsOrigin};
53

examples/default_headers.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use tide::middleware::DefaultHeaders;
42

53
fn main() {

examples/graphql.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// a look at [the Juniper book].
33
//
44
// [the Juniper book]: https://graphql-rust.github.io/
5-
#![feature(async_await)]
65
use http::status::StatusCode;
76
use juniper::graphql_object;
87
use std::sync::{atomic, Arc};

examples/hello.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
fn main() {
32
let mut app = tide::App::new();
43
app.at("/").get(|_| async move { "Hello, world!" });

examples/hello_envlog.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
fn main() {
32
env_logger::from_env(env_logger::Env::default().default_filter_or("info")).init();
43
let mut app = tide::App::new();

examples/hello_logrs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
fn main() {
32
use log::LevelFilter;
43
use log4rs::append::console::ConsoleAppender;

examples/messages.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use http::status::StatusCode;
42
use serde::{Deserialize, Serialize};
53
use std::sync::Mutex;

examples/multipart_form/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
use serde::{Deserialize, Serialize};
32
use std::io::Read;
43
use tide::{forms::ContextExt, response, App, Context, EndpointResult};

examples/runtime.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
/// An example of how to run a Tide service on top of `runtime`, this also shows the pieces
42
/// necessary if you wish to run a service on some other executor/IO source.
53

examples/staticfile.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use bytes::Bytes;
42
use futures_fs::FsPool;
53
use futures_util::compat::*;

examples/templating_tera.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use tera::{self, compile_templates};
42
use tide::{self, App, Context, EndpointResult, Error};
53

rfcs/001-app-new.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ renamed to `Context::state`.
4848

4949
__no state__
5050
```rust
51-
#![feature(async_await)]
52-
5351
fn main() -> Result<(), failure::Error> {
5452
let mut app = tide::App::new();
5553
app.at("/").get(|_| async move { "Hello, world!" });
@@ -59,8 +57,6 @@ fn main() -> Result<(), failure::Error> {
5957

6058
__with state__
6159
```rust
62-
#![feature(async_await)]
63-
6460
#[derive(Default)]
6561
struct State {
6662
/* db connection goes here */

src/app.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ use crate::{
3030
/// on `127.0.0.1:8000` with:
3131
///
3232
/// ```rust, no_run
33-
/// #![feature(async_await)]
34-
///
3533
/// let mut app = tide::App::new();
3634
/// app.at("/hello").get(|_| async move { "Hello, world!" });
3735
/// app.run("127.0.0.1:8000");
@@ -45,8 +43,6 @@ use crate::{
4543
/// segments as parameters to endpoints:
4644
///
4745
/// ```rust, no_run
48-
/// #![feature(async_await)]
49-
///
5046
/// use tide::error::ResultExt;
5147
///
5248
/// async fn hello(cx: tide::Context<()>) -> tide::EndpointResult<String> {
@@ -75,8 +71,6 @@ use crate::{
7571
/// # Application state
7672
///
7773
/// ```rust, no_run
78-
/// #![feature(async_await)]
79-
///
8074
/// use http::status::StatusCode;
8175
/// use serde::{Deserialize, Serialize};
8276
/// use std::sync::Mutex;
@@ -166,7 +160,6 @@ impl<State: Send + Sync + 'static> App<State> {
166160
/// respective endpoint of the selected resource. Example:
167161
///
168162
/// ```rust,no_run
169-
/// # #![feature(async_await)]
170163
/// # let mut app = tide::App::new();
171164
/// app.at("/").get(|_| async move { "Hello, world!" });
172165
/// ```

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
#![cfg_attr(any(feature = "nightly", test), feature(external_doc))]
66
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
7-
#![feature(async_await)]
87
#![warn(
98
nonstandard_style,
109
rust_2018_idioms,

tests/head_response_empty_body.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use futures::executor::block_on;
42
use http_service::Body;
53
use http_service_mock::make_server;

tests/wildcard.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(async_await)]
2-
31
use futures::executor::block_on;
42
use http_service::Body;
53
use http_service_mock::make_server;

tide-compression/examples/simple.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(async_await)]
21
use tide::{App, Context};
32
use tide_compression::{Compression, Decompression, Encoding};
43

tide-compression/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
44
#![cfg_attr(feature = "nightly", feature(external_doc))]
55
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
6-
#![feature(async_await)]
76
#![warn(
87
nonstandard_style,
98
rust_2018_idioms,

tide-cookies/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Crate that provides helpers and/or middlewares for Tide
22
//! related to cookies.
33
4-
#![feature(async_await)]
54
#![warn(
65
nonstandard_style,
76
rust_2018_idioms,

tide-core/src/endpoint.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@ use crate::{error::Error, response::IntoResponse, Context, Response};
1313
/// # Examples
1414
///
1515
/// Endpoints are implemented as asynchronous functions that make use of language features
16-
/// currently only available in Rust Nightly. For this reason, we have to explicitly enable
17-
/// those features with `#![feature(async_await)]`. To keep examples concise,
18-
/// the attribute will be omitted in most of the documentation.
16+
/// currently only available in Rust Nightly.
1917
///
2018
/// A simple endpoint that is invoked on a `GET` request and returns a `String`:
2119
///
2220
/// ```rust, no_run
23-
/// # #![feature(async_await)]
2421
/// async fn hello(_cx: tide::Context<()>) -> String {
2522
/// String::from("hello")
2623
/// }

tide-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Core types and traits from Tide
22
3-
#![feature(async_await)]
43
#![warn(
54
nonstandard_style,
65
rust_2018_idioms,

tide-cors/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ This crate provides cors-related middleware for Tide.
77
Examples are in the `/examples` folder of this crate.
88

99
```rust,no_run
10-
#![feature(async_await)]
11-
1210
use http::header::HeaderValue;
1311
use tide::middleware::CorsMiddleware;
1412

tide-cors/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//! ## Examples
44
//!
55
//! ```rust,no_run
6-
//! #![feature(async_await)]
7-
//!
86
//! use http::header::HeaderValue;
97
//! use tide::middleware::{CorsMiddleware, CorsOrigin};
108
//!
@@ -30,7 +28,6 @@
3028
//!
3129
//! You will probably get a browser alert when running without cors middleware.
3230
33-
#![feature(async_await)]
3431
#![warn(
3532
nonstandard_style,
3633
rust_2018_idioms,

tide-forms/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Crate that provides helpers and extensions for Tide
22
//! related to forms.
33
4-
#![feature(async_await)]
54
#![warn(
65
nonstandard_style,
76
rust_2018_idioms,

tide-headers/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Crate that provides helpers and/or middlewares for Tide
22
//! related to http headers.
33
4-
#![feature(async_await)]
54
#![warn(
65
nonstandard_style,
76
rust_2018_idioms,

tide-log/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Crate that provides helpers and/or middlewares for Tide
22
//! related to logging.
33
4-
#![feature(async_await)]
54
#![warn(
65
nonstandard_style,
76
rust_2018_idioms,

tide-panic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ repository = "https://github.com/rustasync/tide"
1111
[dependencies]
1212
futures-preview = "0.3.0-alpha.17"
1313
http = "0.1"
14-
http-service = "0.2.0"
14+
http-service = "0.3.0"
1515
tide-core = { path = "../tide-core" }

tide-panic/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! Tide's default panic handling is not usable by your application. Before using these you should
55
//! have a good understanding of how the different components involved in [`std::panic`] works.
66
7-
#![feature(async_await, doc_cfg)]
7+
#![feature(doc_cfg)]
88
#![warn(
99
nonstandard_style,
1010
rust_2018_idioms,

tide-querystring/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Crate that provides helpers and extensions for Tide
22
//! related to query strings.
33
4-
#![feature(async_await)]
54
#![warn(
65
nonstandard_style,
76
rust_2018_idioms,
@@ -20,8 +19,6 @@ use tide_core::{error::Error, Context};
2019
/// Turning the query parameters into a `HashMap`:
2120
///
2221
/// ```
23-
/// #![feature(async_await)]
24-
///
2522
/// # use std::collections::HashMap;
2623
/// use tide::querystring::ContextExt;
2724
///

tide-slog/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//! related to structured logging with slog.
33
44
#![cfg_attr(docrs, feature(doc_cfg))]
5-
#![feature(async_await)]
65
#![warn(
76
nonstandard_style,
87
rust_2018_idioms,

0 commit comments

Comments
 (0)