use std in test configurations

this makes `cargo test` and `cargo bench` work cleanly, for one.
This commit is contained in:
edef 2015-01-14 11:12:39 +01:00
parent 40d0923704
commit 3f76c4baea
1 changed files with 5 additions and 0 deletions

View File

@ -5,8 +5,13 @@
#[allow(unstable)]
extern crate core;
#[cfg(test)]
#[macro_use]
extern crate std;
pub use context::Context;
#[cfg(not(test))]
mod std { pub use core::*; }
mod context;