2010-06-23 23:03:09 -05:00
|
|
|
meta (name = "std",
|
|
|
|
desc = "Rust standard library",
|
|
|
|
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
|
|
|
|
url = "http://rust-lang.org/src/std",
|
|
|
|
ver = "0.0.1");
|
|
|
|
|
|
|
|
// Built-in types support modules.
|
|
|
|
|
|
|
|
mod _int;
|
2010-08-20 13:40:59 -05:00
|
|
|
mod _uint;
|
2010-06-23 23:03:09 -05:00
|
|
|
mod _u8;
|
|
|
|
mod _vec;
|
|
|
|
mod _str;
|
|
|
|
|
|
|
|
// General IO and system-services modules.
|
|
|
|
|
2011-02-22 17:58:07 -06:00
|
|
|
mod io;
|
2010-06-23 23:03:09 -05:00
|
|
|
mod sys;
|
2010-08-11 23:23:34 -05:00
|
|
|
mod _task;
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2010-07-05 16:38:02 -05:00
|
|
|
// Utility modules.
|
|
|
|
|
2010-11-03 19:10:37 -05:00
|
|
|
mod option;
|
2010-07-05 16:38:02 -05:00
|
|
|
mod util;
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
// Authorize various rule-bendings.
|
|
|
|
|
2011-02-22 17:58:07 -06:00
|
|
|
auth io = unsafe;
|
2011-03-10 08:56:51 -06:00
|
|
|
auth fs = unsafe;
|
2011-03-11 06:30:18 -06:00
|
|
|
auth os = unsafe;
|
2011-03-10 08:56:51 -06:00
|
|
|
auth os_fs = unsafe;
|
2011-03-11 06:30:18 -06:00
|
|
|
auth run = unsafe;
|
2010-06-23 23:03:09 -05:00
|
|
|
auth _str = unsafe;
|
|
|
|
auth _vec = unsafe;
|
2010-08-11 23:23:34 -05:00
|
|
|
auth _task = unsafe;
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-03-16 16:58:02 -05:00
|
|
|
|
|
|
|
// FIXME: impure on these will infect caller in a way that is totally
|
|
|
|
// beyond reason, if the caller's mutated-argument doesn't escape;
|
|
|
|
// 'impure' needs work.
|
|
|
|
auth _str.unshift_byte = impure;
|
|
|
|
auth _str.shift_byte = impure;
|
|
|
|
auth _str.pop_byte = impure;
|
|
|
|
auth _vec.shift = impure;
|
|
|
|
auth _vec.unshift = impure;
|
|
|
|
auth _vec.pop = impure;
|
|
|
|
|
2010-08-24 20:37:42 -05:00
|
|
|
auth dbg = unsafe;
|
|
|
|
|
2010-08-20 13:40:59 -05:00
|
|
|
auth _uint.next_power_of_two = unsafe;
|
2010-07-16 20:14:52 -05:00
|
|
|
auth map.mk_hashmap = unsafe;
|
2010-07-25 23:45:09 -05:00
|
|
|
auth rand.mk_rng = unsafe;
|
2010-07-16 20:14:52 -05:00
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
// Target-OS module.
|
|
|
|
|
|
|
|
alt (target_os) {
|
2010-09-22 17:44:13 -05:00
|
|
|
case ("win32") {
|
|
|
|
mod os = "win32_os.rs";
|
2011-03-10 08:56:51 -06:00
|
|
|
mod os_fs = "win32_fs.rs";
|
2010-09-22 17:44:13 -05:00
|
|
|
} case ("macos") {
|
|
|
|
mod os = "macos_os.rs";
|
2011-03-10 08:56:51 -06:00
|
|
|
mod os_fs = "posix_fs.rs";
|
2010-09-22 17:44:13 -05:00
|
|
|
} else {
|
|
|
|
mod os = "linux_os.rs";
|
2011-03-10 08:56:51 -06:00
|
|
|
mod os_fs = "posix_fs.rs";
|
2010-09-22 17:44:13 -05:00
|
|
|
}
|
2011-03-10 08:56:51 -06:00
|
|
|
}
|
2011-03-11 06:30:18 -06:00
|
|
|
mod run = "run_program.rs";
|
2011-03-10 08:56:51 -06:00
|
|
|
mod fs;
|
|
|
|
|
2010-10-16 00:09:09 -05:00
|
|
|
// FIXME: parametric
|
2010-07-16 20:14:52 -05:00
|
|
|
mod map;
|
2010-07-20 20:03:09 -05:00
|
|
|
mod deque;
|
2010-10-16 00:09:09 -05:00
|
|
|
mod list;
|
2010-07-25 23:45:09 -05:00
|
|
|
mod rand;
|
2010-08-24 20:37:42 -05:00
|
|
|
mod dbg;
|
2010-10-21 13:39:53 -05:00
|
|
|
mod bitv;
|
2010-12-21 02:44:06 -06:00
|
|
|
mod sort;
|
2011-02-20 23:56:09 -06:00
|
|
|
mod sha1;
|
2011-03-22 15:59:17 -05:00
|
|
|
mod ebml;
|
2010-09-22 17:44:13 -05:00
|
|
|
|
|
|
|
// 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:
|