|
10 | 10 |
|
11 | 11 | /*!
|
12 | 12 |
|
13 |
| -# The Rust core library |
| 13 | +# The Rust standard library |
14 | 14 |
|
15 |
| -The Rust core library provides runtime features required by the language, |
| 15 | +The Rust standard library provides runtime features required by the language, |
16 | 16 | including the task scheduler and memory allocators, as well as library
|
17 | 17 | support for Rust built-in types, platform abstractions, and other commonly
|
18 | 18 | used features.
|
19 | 19 |
|
20 |
| -`core` includes modules corresponding to each of the integer types, each of |
| 20 | +`std` includes modules corresponding to each of the integer types, each of |
21 | 21 | the floating point types, the `bool` type, tuples, characters, strings
|
22 | 22 | (`str`), vectors (`vec`), managed boxes (`managed`), owned boxes (`owned`),
|
23 |
| -and unsafe and borrowed pointers (`ptr`). Additionally, `core` provides |
| 23 | +and unsafe and borrowed pointers (`ptr`). Additionally, `std` provides |
24 | 24 | pervasive types (`option` and `result`), task creation and communication
|
25 | 25 | primitives (`task`, `comm`), platform abstractions (`os` and `path`), basic
|
26 | 26 | I/O abstractions (`io`), common traits (`kinds`, `ops`, `cmp`, `num`,
|
27 | 27 | `to_str`), and complete bindings to the C standard library (`libc`).
|
28 | 28 |
|
29 |
| -# Core injection and the Rust prelude |
| 29 | +# Standard library injection and the Rust prelude |
30 | 30 |
|
31 |
| -`core` is imported at the topmost level of every crate by default, as |
| 31 | +`std` is imported at the topmost level of every crate by default, as |
32 | 32 | if the first line of each crate was
|
33 | 33 |
|
34 |
| - extern mod core; |
| 34 | + extern mod std; |
35 | 35 |
|
36 |
| -This means that the contents of core can be accessed from any context |
37 |
| -with the `core::` path prefix, as in `use core::vec`, `use core::task::spawn`, |
| 36 | +This means that the contents of std can be accessed from any context |
| 37 | +with the `std::` path prefix, as in `use std::vec`, `use std::task::spawn`, |
38 | 38 | etc.
|
39 | 39 |
|
40 |
| -Additionally, `core` contains a `prelude` module that reexports many of the |
41 |
| -most common core modules, types and traits. The contents of the prelude are |
| 40 | +Additionally, `std` contains a `prelude` module that reexports many of the |
| 41 | +most common std modules, types and traits. The contents of the prelude are |
42 | 42 | imported into every *module* by default. Implicitly, all modules behave as if
|
43 | 43 | they contained the following prologue:
|
44 | 44 |
|
45 |
| - use core::prelude::*; |
| 45 | + use std::prelude::*; |
46 | 46 |
|
47 | 47 | */
|
48 | 48 |
|
49 | 49 |
|
50 | 50 | #[link(name = "std",
|
51 | 51 | vers = "0.7-pre",
|
52 | 52 | uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
|
53 |
| - url = "https://github.com/mozilla/rust/tree/master/src/libcore")]; |
| 53 | + url = "https://github.com/mozilla/rust/tree/master/src/libstd")]; |
54 | 54 |
|
55 |
| -#[comment = "The Rust core library"]; |
| 55 | +#[comment = "The Rust standard library"]; |
56 | 56 | #[license = "MIT/ASL2"];
|
57 | 57 | #[crate_type = "lib"];
|
58 | 58 |
|
|
0 commit comments