aboutsummaryrefslogtreecommitdiff
path: root/src/lib/std.rc
blob: a317b1148f74178f5b227c5c4c8c36052568b939 (plain) (blame)
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
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;
mod U8;
mod Vec;
mod Str;

// General IO and system-services modules.

mod IO;
mod Sys;
mod Task;

// Utility modules.

mod Option;
mod Util;

// Authorize various rule-bendings.

auth IO = unsafe;
auth FS = unsafe;
auth OS_FS = unsafe;
auth Run = unsafe;
auth Str = unsafe;
auth Vec = unsafe;
auth Task = unsafe;

auth Dbg = unsafe;

auth UInt.next_power_of_two = unsafe;
auth Map.mk_hashmap = unsafe;
auth Rand.mk_rng = unsafe;

// Target-OS module.

// TODO: Have each OS module re-export everything from GenericOS.
mod GenericOS;

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;
mod Sort;
mod SHA1;
mod EBML;
mod UFind;
mod ExtFmt;
mod Box;
mod GetOpts;
mod Term;
mod Time;

// 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: