mirror of https://github.com/rwf2/Rocket.git
Only enable testing features on 'cfg(test)'.
This commit is contained in:
parent
3f2b8f6006
commit
0909ba2ef6
|
@ -1,4 +1,4 @@
|
|||
#![feature(test)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#[macro_use] extern crate rocket;
|
||||
|
||||
use rocket::config::{Environment, Config, LoggingLevel};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(test)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#[macro_use] extern crate rocket;
|
||||
|
||||
use rocket::config::{Environment, Config, LoggingLevel};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(test)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#[macro_use] extern crate rocket;
|
||||
|
||||
use rocket::config::{Environment, Config, LoggingLevel};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![feature(external_doc)]
|
||||
#![cfg_attr(test, feature(external_doc))]
|
||||
|
||||
#[cfg(test)]
|
||||
rocket::rocket_internal_guide_tests!("../guide/*.md");
|
||||
|
|
Loading…
Reference in New Issue