From 3f76c4baead375eee9ba74aea92027c39feabfda Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 14 Jan 2015 11:12:39 +0100 Subject: [PATCH] use std in test configurations this makes `cargo test` and `cargo bench` work cleanly, for one. --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 9acd058..a310574 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;