Only enable testing features on 'cfg(test)'.

This commit is contained in:
Sergio Benitez 2020-07-16 05:49:38 -07:00
parent 3f2b8f6006
commit 0909ba2ef6
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#![feature(test)]
#![cfg_attr(test, feature(test))]
#[macro_use] extern crate rocket;
use rocket::config::{Environment, Config, LoggingLevel};

View File

@ -1,4 +1,4 @@
#![feature(test)]
#![cfg_attr(test, feature(test))]
#[macro_use] extern crate rocket;
use rocket::config::{Environment, Config, LoggingLevel};

View File

@ -1,4 +1,4 @@
#![feature(test)]
#![cfg_attr(test, feature(test))]
#[macro_use] extern crate rocket;
use rocket::config::{Environment, Config, LoggingLevel};

View File

@ -1,3 +1,4 @@
#![feature(external_doc)]
#![cfg_attr(test, feature(external_doc))]
#[cfg(test)]
rocket::rocket_internal_guide_tests!("../guide/*.md");