summary refs log tree commit diff
path: root/src/libcore/core.rc
blob: 4a03247c642227f376da7ca4a7add8f299990ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#[link(name = "core",
       vers = "0.2",
       uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
       url = "https://github.com/mozilla/rust/tree/master/src/libcore")];

#[comment = "The Rust core library"];
#[license = "MIT"];
#[crate_type = "lib"];

// Don't link to core. We are core.
#[no_core];

#[doc = "
The Rust core library

The core library provides functionality that is closely tied to the Rust
built-in types and runtime services, or that is used in nearly every
non-trivial program.

It is linked by default to all crates and the contents imported. The effect is
as though the user had written the following:

    use core;
    import core::*;

This behavior can be disabled with the `no_core` crate attribute.
"];

export int, i8, i16, i32, i64;
export uint, u8, u16, u32, u64;
export float, f32, f64;
export box, char, str, ptr, vec, bool;
export either, option, result, iter;
export libc, os, io, run, rand, sys, unsafe, logging;
export comm, task, future;
export extfmt;
export tuple;
export to_str;

// Built-in-type support modules

mod box;
mod char;
mod float;
mod f32;
mod f64;
mod int;
mod i8;
mod i16;
mod i32;
mod i64;
mod str;
mod ptr;
mod uint;
mod u8;
mod u16;
mod u32;
mod u64;
mod vec;
mod bool;

// For internal use by char, not exported
mod unicode;


// Ubiquitous-utility-type modules

mod either;
mod option;
mod result;
mod tuple;
mod iter;

// Useful ifaces

mod to_str;

// Runtime and language-primitive support

mod libc;
mod os;
mod io;
mod run;
mod rand;
mod path;

mod cmath;
mod sys;
mod unsafe;
mod logging;

// Concurrency
mod comm;
mod task;
mod future;

// Compiler support modules

mod extfmt;


// Local Variables:
// mode: rust;
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: