Bump Rocket, Rust version and remove impl trait flag
This commit is contained in:
parent
27a0ef73f1
commit
accef5488a
|
@ -3,7 +3,7 @@ language: rust
|
|||
rust:
|
||||
- nightly
|
||||
# Minimum Rust set by Rocket
|
||||
- nightly-2018-01-13
|
||||
- nightly-2018-06-22
|
||||
cache: cargo
|
||||
env:
|
||||
global:
|
||||
|
|
|
@ -21,7 +21,7 @@ serialization = ["serde", "serde_derive", "unicase_serde", "url_serde"]
|
|||
|
||||
[dependencies]
|
||||
log = "0.3"
|
||||
rocket = "0.3.6"
|
||||
rocket = "0.3.14"
|
||||
unicase = "2.0"
|
||||
url = "1.5.1"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(plugin, conservative_impl_trait)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(rocket_codegen)]
|
||||
extern crate rocket;
|
||||
extern crate rocket_cors;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//! In this example, you typically have an application wide `Cors` struct except for one specific
|
||||
//! `ping` route that you want to allow all Origins to access.
|
||||
|
||||
#![feature(plugin, conservative_impl_trait)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(rocket_codegen)]
|
||||
extern crate rocket;
|
||||
extern crate rocket_cors;
|
||||
|
|
10
src/lib.rs
10
src/lib.rs
|
@ -259,10 +259,6 @@
|
|||
//! that has any side effects or with an appreciable computation cost inside this handler.
|
||||
//!
|
||||
//! ### Steps to perform:
|
||||
//! - Your crate will need to enable the
|
||||
//! [`conservative_impl_trait`](https://github.com/rust-lang/rfcs/blob/master/text/1522-conservative-impl-trait.md)
|
||||
//! feature. You can use `#![feature(conservative_impl_trait)]` at your crate root.
|
||||
//! Otherwise, the return type of your routes will be unspecifiable.
|
||||
//! - You will first need to have a `Cors` struct ready. This struct can be borrowed with a lifetime
|
||||
//! at least as long as `'r` which is the lifetime of a Rocket request. `'static` works too.
|
||||
//! In this case, you might as well use the `Guard` method above and place the `Cors` struct in
|
||||
|
@ -299,7 +295,7 @@
|
|||
//! (which you might have put in Rocket's state).
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! #![feature(plugin, conservative_impl_trait)]
|
||||
//! #![feature(plugin)]
|
||||
//! #![plugin(rocket_codegen)]
|
||||
//! extern crate rocket;
|
||||
//! extern crate rocket_cors;
|
||||
|
@ -356,7 +352,7 @@
|
|||
//! special handling, you might want to use the Guard method instead which has less hassle.
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! #![feature(plugin, conservative_impl_trait)]
|
||||
//! #![feature(plugin)]
|
||||
//! #![plugin(rocket_codegen)]
|
||||
//! extern crate rocket;
|
||||
//! extern crate rocket_cors;
|
||||
|
@ -425,7 +421,7 @@
|
|||
//! You can run the example code below with `cargo run --example mix`.
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! #![feature(plugin, conservative_impl_trait)]
|
||||
//! #![feature(plugin)]
|
||||
//! #![plugin(rocket_codegen)]
|
||||
//! extern crate rocket;
|
||||
//! extern crate rocket_cors;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! This crate tests using `rocket_cors` using manual mode
|
||||
|
||||
#![feature(plugin, conservative_impl_trait)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(rocket_codegen)]
|
||||
extern crate hyper;
|
||||
extern crate rocket;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//! In this example, you typically have an application wide `Cors` struct except for one specific
|
||||
//! `ping` route that you want to allow all Origins to access.
|
||||
|
||||
#![feature(plugin, conservative_impl_trait)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(rocket_codegen)]
|
||||
extern crate hyper;
|
||||
extern crate rocket;
|
||||
|
|
Loading…
Reference in New Issue