about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-02-24 13:16:03 -0500
committerAlex Crichton <alex@alexcrichton.com>2014-04-04 09:31:21 -0700
commit308c03501a9a49d058f2ad76dd17a4e593ce7be7 (patch)
tree7422beb467d5f5cde6dc4c9c1b497625c5d21810 /src/libstd/lib.rs
parent46e6194ee138b09d7376fa3dcdb539cf41dc68dd (diff)
downloadrust-308c03501a9a49d058f2ad76dd17a4e593ce7be7.tar.gz
rust-308c03501a9a49d058f2ad76dd17a4e593ce7be7.zip
Remove libc from std
These wrappers are bound to a specific libc, and they don't need to be part of
libstd.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs5
1 files changed, 3 insertions, 2 deletions
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;