3
3
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
4
4
url = "http://rust-lang.org/src/std")];
5
5
6
- #[comment = "Rust standard library"];
6
+ #[comment = "The Rust standard library"];
7
7
#[license = "BSD"];
8
8
9
- // Built-in types support modules.
10
9
10
+ export box, char, float, int, str, ptr, uint, u8, u32, u64, vec;
11
+ export aio, comm, fs, io, net, run, sio, sys, task;
12
+ export ctypes, either, option, result, util;
13
+ export bitv, deque, fun_treemap, list, map, smallintmap, sort, treemap, ufind;
14
+ export ebml, dbg, getopts, math, rand, sha1, term, time, unsafe;
15
+ export extfmt, test;
16
+ // FIXME: generic_os and os_fs shouldn't be exported
17
+ export generic_os, os, os_fs;
18
+
19
+
20
+ // Built-in types support modules
21
+
22
+ mod box;
11
23
mod char;
24
+ mod float;
12
25
mod int;
26
+ mod str;
27
+ mod ptr;
13
28
mod uint;
14
29
mod u8;
15
30
mod u32;
16
31
mod u64;
17
32
mod vec;
18
- mod str;
19
- mod float;
20
33
21
- // General io and system-services modules.
22
34
35
+ // General io and system-services modules
36
+
37
+ mod aio;
38
+ mod comm;
39
+ mod fs;
23
40
mod io;
41
+ mod net;
42
+ mod run = "run_program.rs";
43
+ mod sio;
24
44
mod sys;
25
45
mod task;
26
- mod comm;
27
46
28
- // Utility modules.
29
47
48
+ // Utility modules
49
+
50
+ mod ctypes;
30
51
mod either;
31
52
mod option;
53
+ mod result;
32
54
mod util;
33
- mod ctypes;
34
55
35
- // Authorize various rule-bendings.
36
56
37
- auth io = unsafe;
38
- auth fs = unsafe;
39
- auth os_fs = unsafe;
40
- auth run = unsafe;
41
- auth str = unsafe;
42
- auth vec = unsafe;
43
- auth task = unsafe;
57
+ // Collections
44
58
45
- auth dbg = unsafe;
59
+ mod bitv;
60
+ mod deque;
61
+ mod fun_treemap;
62
+ mod list;
63
+ mod map;
64
+ mod smallintmap;
65
+ mod sort;
66
+ mod treemap;
67
+ mod ufind;
68
+
69
+
70
+ // And ... other stuff
71
+
72
+ mod ebml;
73
+ mod dbg;
74
+ mod getopts;
75
+ mod math;
76
+ mod rand;
77
+ mod sha1;
78
+ mod term;
79
+ mod time;
80
+ mod unsafe;
81
+
82
+ #[cfg(unicode)]
83
+ mod unicode;
84
+
85
+
86
+ // Compiler support modules
87
+
88
+ mod extfmt;
89
+ mod test;
46
90
47
- auth uint::next_power_of_two = unsafe;
48
- auth map::mk_hashmap = unsafe;
49
- auth rand::mk_rng = unsafe;
50
91
51
92
// Target-os module.
52
93
@@ -68,39 +109,24 @@ mod os = "linux_os.rs";
68
109
#[cfg(target_os = "linux")]
69
110
mod os_fs = "posix_fs.rs";
70
111
71
- mod run = "run_program.rs";
72
- mod fs;
73
- mod aio;
74
- mod sio;
75
- mod net;
76
112
77
- // FIXME: parametric
78
- mod map;
79
- mod treemap;
80
- mod fun_treemap;
81
- mod deque;
82
- mod list;
83
- mod rand;
84
- mod dbg;
85
- mod bitv;
86
- mod sort;
87
- mod sha1;
88
- mod ebml;
89
- mod ufind;
90
- mod extfmt;
91
- mod box;
92
- mod getopts;
93
- mod time;
94
- mod smallintmap;
95
- mod ptr;
96
- mod test;
97
- mod unsafe;
98
- mod term;
99
- mod math;
100
- mod result;
113
+ // FIXME: This doesn't do anything.
114
+ // Authorize various rule-bendings.
115
+
116
+ auth io = unsafe;
117
+ auth fs = unsafe;
118
+ auth os_fs = unsafe;
119
+ auth run = unsafe;
120
+ auth str = unsafe;
121
+ auth vec = unsafe;
122
+ auth task = unsafe;
123
+
124
+ auth dbg = unsafe;
125
+
126
+ auth uint::next_power_of_two = unsafe;
127
+ auth map::mk_hashmap = unsafe;
128
+ auth rand::mk_rng = unsafe;
101
129
102
- #[cfg(unicode)]
103
- mod unicode;
104
130
105
131
// Local Variables:
106
132
// mode: rust;
0 commit comments