]> git.lizzy.rs Git - rust.git/blob - src/libcore/lib.rs
core: Inherit non-allocating slice functionality
[rust.git] / src / libcore / lib.rs
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.
4 //
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.
10
11 //! The Rust core library
12
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")]
19
20 #![no_std]
21 #![feature(globs, macro_rules, managed_boxes)]
22 #![deny(missing_doc)]
23
24 #[path = "num/float_macros.rs"] mod float_macros;
25 #[path = "num/int_macros.rs"]   mod int_macros;
26 #[path = "num/uint_macros.rs"]  mod uint_macros;
27
28 #[path = "num/int.rs"]  pub mod int;
29 #[path = "num/i8.rs"]   pub mod i8;
30 #[path = "num/i16.rs"]  pub mod i16;
31 #[path = "num/i32.rs"]  pub mod i32;
32 #[path = "num/i64.rs"]  pub mod i64;
33
34 #[path = "num/uint.rs"] pub mod uint;
35 #[path = "num/u8.rs"]   pub mod u8;
36 #[path = "num/u16.rs"]  pub mod u16;
37 #[path = "num/u32.rs"]  pub mod u32;
38 #[path = "num/u64.rs"]  pub mod u64;
39
40 #[path = "num/f32.rs"]   pub mod f32;
41 #[path = "num/f64.rs"]   pub mod f64;
42
43 pub mod num;
44
45 /* Core modules for ownership management */
46
47 pub mod cast;
48 pub mod intrinsics;
49 pub mod mem;
50 pub mod ptr;
51
52 /* Core language traits */
53
54 pub mod cmp;
55 pub mod kinds;
56 pub mod ops;
57 pub mod ty;
58 pub mod clone;
59 pub mod default;
60 pub mod container;
61
62 /* Core types and methods on primitives */
63
64 mod unit;
65 pub mod any;
66 pub mod bool;
67 pub mod finally;
68 pub mod iter;
69 pub mod option;
70 pub mod raw;
71 pub mod char;
72 pub mod slice;
73 pub mod tuple;