From 308c03501a9a49d058f2ad76dd17a4e593ce7be7 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Mon, 24 Feb 2014 13:16:03 -0500 Subject: Remove libc from std These wrappers are bound to a specific libc, and they don't need to be part of libstd. --- src/libstd/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstd/lib.rs') diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index f4f5be4d37a..e3a263c776b 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -73,6 +73,9 @@ // Make and rand accessible for benchmarking/testcases #[cfg(test)] extern crate rand; +// we wrap some libc stuff +extern crate libc; + // Make std testable by not duplicating lang items. See #2912 #[cfg(test)] extern crate realstd = "std"; #[cfg(test)] pub use kinds = realstd::kinds; @@ -176,8 +179,6 @@ pub mod sync; /* Runtime and platform support */ -#[unstable] -pub mod libc; pub mod c_str; pub mod c_vec; pub mod os; -- cgit 1.4.1-3-g733a5