Make crate compile on Rust stable
Rocket meanwhile works on Rust stable, so there is no reason to be limited to nightly.
This commit is contained in:
parent
92bc525016
commit
cb17fde4d6
|
@ -1,4 +1,3 @@
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
use rocket::http::Method;
|
use rocket::http::Method;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
//! This example is to demonstrate the JSON serialization and deserialization of the Cors settings
|
//! This example is to demonstrate the JSON serialization and deserialization of the Cors settings
|
||||||
//!
|
//!
|
||||||
//! Note: This requires the `serialization` feature which is enabled by default.
|
//! Note: This requires the `serialization` feature which is enabled by default.
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
|
|
||||||
use rocket_cors as cors;
|
use rocket_cors as cors;
|
||||||
|
|
||||||
use crate::cors::{AllowedHeaders, AllowedOrigins, CorsOptions};
|
use crate::cors::{AllowedHeaders, AllowedOrigins, CorsOptions};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
|
|
||||||
use rocket::error::Error;
|
use rocket::error::Error;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
//! In this example, you typically have an application wide `Cors` struct except for one specific
|
//! 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.
|
//! `ping` route that you want to allow all Origins to access.
|
||||||
|
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use rocket::error::Error;
|
use rocket::error::Error;
|
||||||
use rocket::http::Method;
|
use rocket::http::Method;
|
||||||
use rocket::response::Responder;
|
use rocket::response::Responder;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
nightly
|
|
|
@ -1,5 +1,4 @@
|
||||||
//! This crate tests using `rocket_cors` using Fairings
|
//! This crate tests using `rocket_cors` using Fairings
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use rocket::http::hyper;
|
use rocket::http::hyper;
|
||||||
use rocket::http::Method;
|
use rocket::http::Method;
|
||||||
use rocket::http::{Header, Status};
|
use rocket::http::{Header, Status};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
//! This crate tests using `rocket_cors` using the per-route handling with request guard
|
//! This crate tests using `rocket_cors` using the per-route handling with request guard
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use rocket_cors as cors;
|
use rocket_cors as cors;
|
||||||
|
|
||||||
use rocket::http::hyper;
|
use rocket::http::hyper;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
//! This crate tests that all the request headers are parsed correctly in the round trip
|
//! This crate tests that all the request headers are parsed correctly in the round trip
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
use rocket::http::hyper;
|
use rocket::http::hyper;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
//! This crate tests using `rocket_cors` using manual mode
|
//! This crate tests using `rocket_cors` using manual mode
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use rocket::http::hyper;
|
use rocket::http::hyper;
|
||||||
use rocket::http::Method;
|
use rocket::http::Method;
|
||||||
use rocket::http::{Header, Status};
|
use rocket::http::{Header, Status};
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
//!
|
//!
|
||||||
//! In this example, you typically have an application wide `Cors` struct except for one specific
|
//! 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.
|
//! `ping` route that you want to allow all Origins to access.
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
|
||||||
use rocket::http::hyper;
|
use rocket::http::hyper;
|
||||||
use rocket::http::{Header, Method, Status};
|
use rocket::http::{Header, Method, Status};
|
||||||
use rocket::local::blocking::Client;
|
use rocket::local::blocking::Client;
|
||||||
|
|
Loading…
Reference in New Issue