Skip to content

Commit 958f2a7

Browse files
author
Artem Vorotnikov
authored
Bump http-service dependency in tide-panic, set CI to nightly-2019-08-21, remove async_await feature flag everywhere (#309)
1 parent 23b8719 commit 958f2a7

Some content is hidden

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

42 files changed

+17
-74
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
- >

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ hyper = ["http-service-hyper"]
2727
[dependencies]
2828
futures-preview = "0.3.0-alpha.17"
2929
http = "0.1"
30-
http-service = "0.3.0"
31-
http-service-hyper = { version = "0.4.0", optional = true }
30+
http-service = "0.3.1"
31+
http-service-hyper = { version = "0.3.1", optional = true }
3232
# Routing
3333
fnv = "1.0.6"
3434
route-recognizer = "0.1.13"
@@ -47,7 +47,7 @@ cookie = { version = "0.12", features = ["percent-encode"] }
4747
env_logger = "0.6.1"
4848
futures-fs = "0.0.5"
4949
futures-util-preview = { version = "0.3.0-alpha.17", features = ["compat"] }
50-
http-service-mock = "0.3.0"
50+
http-service-mock = "0.3.1"
5151
juniper = "0.13.0"
5252
log = "0.4.6"
5353
log4rs = "0.8.3"

README.md

Lines changed: 0 additions & 2 deletions

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

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/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ accept-encoding = "0.2.0-alpha.2"
1919
bytes = "0.4.12"
2020
futures-preview = "0.3.0-alpha.17"
2121
http = "0.1"
22-
http-service = "0.3.0"
22+
http-service = "0.3.1"
2323

2424
[dependencies.async-compression]
2525
default-features = false
@@ -28,4 +28,4 @@ version = "0.1.0-alpha.1"
2828

2929
[dev-dependencies]
3030
tide = { path = "../", default-features = false }
31-
http-service-mock = "0.3.0"
31+
http-service-mock = "0.3.1"

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/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ repository = "https://github.com/rustasync/tide"
1414
cookie = { version = "0.12", features = ["percent-encode"] }
1515
futures-preview = "0.3.0-alpha.17"
1616
http = "0.1"
17-
http-service = "0.3.0"
17+
http-service = "0.3.1"
1818
tide-core = { path = "../tide-core", default-features = false }
1919

2020
[dev-dependencies]
2121
tide = { path = "../", default-features = false }
22-
http-service-mock = "0.3.0"
22+
http-service-mock = "0.3.1"

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/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository = "https://github.com/rustasync/tide"
1313
[dependencies]
1414
futures-preview = "0.3.0-alpha.17"
1515
http = "0.1"
16-
http-service = "0.3.0"
16+
http-service = "0.3.1"
1717
serde = "1.0.91"
1818
serde_json = "1.0.39"
1919
route-recognizer = "0.1.13"

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/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ edition = "2018"
1616
[dependencies]
1717
futures-preview = "0.3.0-alpha.17"
1818
http = "0.1"
19-
http-service = "0.3.0"
19+
http-service = "0.3.1"
2020
tide-core = { path = "../tide-core" }
2121

2222
[dev-dependencies]
2323
tide = { path = "../" }
24-
http-service-mock = "0.3.0"
24+
http-service-mock = "0.3.1"

tide-cors/README.md

Lines changed: 0 additions & 2 deletions

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/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ version = "0.1.0"
1818

1919
[dependencies]
2020
tide-core = { path = "../tide-core", default-features = false }
21-
http-service = "0.3.0"
21+
http-service = "0.3.1"
2222
futures-preview = "0.3.0-alpha.17"
2323
http = "0.1"
2424
log = "0.4.6"

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.1"
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/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ serde_qs = "0.5.0"
2626

2727
[dev-dependencies]
2828
tide = { path = "../", default-features = false }
29-
http-service = "0.3.0"
30-
http-service-mock = "0.3.0"
29+
http-service = "0.3.1"
30+
http-service-mock = "0.3.1"

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)