1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! The Rust core library
13 #![crate_id = "core#0.11-pre"]
14 #![license = "MIT/ASL2"]
15 #![crate_type = "rlib"]
16 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
17 html_favicon_url = "http://www.rust-lang.org/favicon.ico",
18 html_root_url = "http://static.rust-lang.org/doc/master")]
21 #![feature(globs, macro_rules, managed_boxes, phase)]
24 #[cfg(test)] extern crate realcore = "core";
25 #[cfg(test)] extern crate libc;
26 #[cfg(test)] extern crate native;
27 #[phase(syntax, link)] #[cfg(test)] extern crate realstd = "std";
28 #[phase(syntax, link)] #[cfg(test)] extern crate log;
30 #[cfg(test)] pub use cmp = realcore::cmp;
31 #[cfg(test)] pub use kinds = realcore::kinds;
32 #[cfg(test)] pub use ops = realcore::ops;
33 #[cfg(test)] pub use owned = realcore::owned;
34 #[cfg(test)] pub use ty = realcore::ty;
39 #[path = "num/float_macros.rs"] mod float_macros;
40 #[path = "num/int_macros.rs"] mod int_macros;
41 #[path = "num/uint_macros.rs"] mod uint_macros;
43 #[path = "num/int.rs"] pub mod int;
44 #[path = "num/i8.rs"] pub mod i8;
45 #[path = "num/i16.rs"] pub mod i16;
46 #[path = "num/i32.rs"] pub mod i32;
47 #[path = "num/i64.rs"] pub mod i64;
49 #[path = "num/uint.rs"] pub mod uint;
50 #[path = "num/u8.rs"] pub mod u8;
51 #[path = "num/u16.rs"] pub mod u16;
52 #[path = "num/u32.rs"] pub mod u32;
53 #[path = "num/u64.rs"] pub mod u64;
55 #[path = "num/f32.rs"] pub mod f32;
56 #[path = "num/f64.rs"] pub mod f64;
60 /* The libcore prelude, not as all-encompassing as the libstd prelude */
64 /* Core modules for ownership management */
71 /* Core language traits */
73 #[cfg(not(test))] pub mod kinds;
74 #[cfg(not(test))] pub mod ops;
75 #[cfg(not(test))] pub mod ty;
76 #[cfg(not(test))] pub mod cmp;
77 #[cfg(not(test))] pub mod owned;
82 /* Core types and methods on primitives */
101 // FIXME: this module should not exist. Once owned allocations are no longer a
102 // language type, this module can move outside to the owned allocation
104 mod should_not_exist;
111 #[cfg(test)] pub use realstd::fmt; // needed for fail!()
112 #[cfg(test)] pub use realstd::rt; // needed for fail!()
113 #[cfg(test)] pub use realstd::option; // needed for assert!()
114 #[cfg(test)] pub use realstd::os; // needed for tests
115 #[cfg(test)] pub use realstd::slice; // needed for tests
116 #[cfg(test)] pub use realstd::vec; // needed for vec![]