rust/src/lib/std.rc

89 lines
1.7 KiB
Plaintext
Raw Normal View History

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;
mod _uint;
2010-06-23 23:03:09 -05:00
mod _u8;
mod _vec;
mod _str;
// General IO and system-services modules.
mod io;
2010-06-23 23:03:09 -05:00
mod sys;
mod _task;
2010-06-23 23:03:09 -05:00
// Utility modules.
2010-11-03 19:10:37 -05:00
mod option;
mod util;
2010-06-23 23:03:09 -05:00
// Authorize various rule-bendings.
auth io = unsafe;
auth fs = unsafe;
auth os = unsafe;
auth os_fs = unsafe;
auth run = unsafe;
2010-06-23 23:03:09 -05:00
auth _str = unsafe;
auth _vec = unsafe;
auth _task = unsafe;
2010-06-23 23:03:09 -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;
auth dbg = unsafe;
auth _uint.next_power_of_two = unsafe;
auth map.mk_hashmap = unsafe;
auth rand.mk_rng = unsafe;
2010-06-23 23:03:09 -05:00
// Target-OS module.
alt (target_os) {
case ("win32") {
mod os = "win32_os.rs";
mod os_fs = "win32_fs.rs";
} case ("macos") {
mod os = "macos_os.rs";
mod os_fs = "posix_fs.rs";
} else {
mod os = "linux_os.rs";
mod os_fs = "posix_fs.rs";
}
}
mod run = "run_program.rs";
mod fs;
// FIXME: parametric
mod map;
mod deque;
mod list;
mod rand;
mod dbg;
mod bitv;
2010-12-21 02:44:06 -06:00
mod sort;
mod sha1;
// 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: