2011-12-05 18:46:37 -06:00
|
|
|
#[link(name = "core",
|
|
|
|
vers = "0.1",
|
|
|
|
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
|
|
|
|
url = "http://rust-lang.org/src/core")];
|
|
|
|
|
|
|
|
#[comment = "The Rust core library"];
|
2012-01-08 18:21:43 -06:00
|
|
|
#[license = "MIT"];
|
2011-12-08 23:08:23 -06:00
|
|
|
#[crate_type = "lib"];
|
2011-12-05 18:46:37 -06:00
|
|
|
|
2012-01-26 18:23:34 -06:00
|
|
|
// Don't link to core. We are core.
|
|
|
|
#[no_core];
|
|
|
|
|
2012-01-23 18:40:33 -06:00
|
|
|
#[doc(
|
|
|
|
brief = "The Rust core library",
|
2012-01-23 18:58:30 -06:00
|
|
|
desc = "
|
2012-01-26 18:23:34 -06:00
|
|
|
|
2012-01-23 19:03:42 -06:00
|
|
|
The core library provides functionality that is closely tied to the Rust
|
|
|
|
built-in types and runtime services, or that is used in nearly every
|
|
|
|
non-trivial program.
|
2012-01-23 18:58:30 -06:00
|
|
|
|
2012-01-23 19:03:42 -06:00
|
|
|
It is linked by default to all crates and the contents imported. The effect is
|
|
|
|
as though the user had written the following:
|
2012-01-23 18:58:30 -06:00
|
|
|
|
2012-01-23 19:11:01 -06:00
|
|
|
use core;
|
|
|
|
import core::*;
|
2012-01-23 18:58:30 -06:00
|
|
|
|
2012-01-26 18:23:34 -06:00
|
|
|
This behavior can be disabled with the `no_core` crate attribute."
|
|
|
|
|
2012-01-23 18:40:33 -06:00
|
|
|
)];
|
|
|
|
|
2012-02-12 01:18:26 -06:00
|
|
|
export int, i8, i16, i32, i64;
|
|
|
|
export uint, u8, u16, u32, u64;
|
|
|
|
export float, f32, f64;
|
|
|
|
export box, char, str, ptr, vec, bool;
|
2012-01-31 20:52:20 -06:00
|
|
|
export either, option, result, iter;
|
2012-03-06 12:14:58 -06:00
|
|
|
export libc, os, ctypes, sys, unsafe, logging;
|
2012-02-19 01:03:18 -06:00
|
|
|
export comm, task, future;
|
2011-12-13 18:25:51 -06:00
|
|
|
export extfmt;
|
2012-02-12 01:18:26 -06:00
|
|
|
export math, bessel;
|
2012-01-17 12:43:29 -06:00
|
|
|
export tuple;
|
2012-02-22 06:06:38 -06:00
|
|
|
export to_str;
|
2011-12-13 18:25:51 -06:00
|
|
|
|
|
|
|
// Built-in-type support modules
|
|
|
|
|
|
|
|
mod box;
|
|
|
|
mod char;
|
|
|
|
mod float;
|
2011-12-27 19:20:14 -06:00
|
|
|
mod bessel;
|
2011-12-13 19:52:02 -06:00
|
|
|
mod f32;
|
|
|
|
mod f64;
|
2011-12-13 18:25:51 -06:00
|
|
|
mod int;
|
2012-02-12 01:18:26 -06:00
|
|
|
mod i8;
|
|
|
|
mod i16;
|
|
|
|
mod i32;
|
|
|
|
mod i64;
|
2011-12-13 18:25:51 -06:00
|
|
|
mod str;
|
|
|
|
mod ptr;
|
|
|
|
mod uint;
|
|
|
|
mod u8;
|
2012-02-12 01:18:26 -06:00
|
|
|
mod u16;
|
2011-12-13 18:25:51 -06:00
|
|
|
mod u32;
|
|
|
|
mod u64;
|
|
|
|
mod vec;
|
|
|
|
mod bool;
|
|
|
|
|
2011-12-23 20:48:08 -06:00
|
|
|
// For internal use by char, not exported
|
|
|
|
mod unicode;
|
|
|
|
|
2011-12-13 18:25:51 -06:00
|
|
|
|
|
|
|
// Ubiquitous-utility-type modules
|
|
|
|
|
|
|
|
mod either;
|
|
|
|
mod option;
|
|
|
|
mod result;
|
2012-01-17 12:43:29 -06:00
|
|
|
mod tuple;
|
2012-01-31 20:52:20 -06:00
|
|
|
mod iter;
|
2011-12-13 18:25:51 -06:00
|
|
|
|
2012-02-22 06:06:38 -06:00
|
|
|
// Useful ifaces
|
|
|
|
|
|
|
|
mod to_str;
|
|
|
|
|
2011-12-13 18:25:51 -06:00
|
|
|
// Runtime and language-primitive support
|
|
|
|
|
2012-02-27 19:22:42 -06:00
|
|
|
mod libc;
|
2012-03-06 12:14:58 -06:00
|
|
|
mod os;
|
2012-03-02 19:20:00 -06:00
|
|
|
mod path;
|
|
|
|
|
2011-12-13 18:25:51 -06:00
|
|
|
mod ctypes;
|
2012-01-05 10:11:34 -06:00
|
|
|
mod math;
|
2011-12-13 19:52:02 -06:00
|
|
|
mod cmath;
|
2011-12-13 18:25:51 -06:00
|
|
|
mod sys;
|
|
|
|
mod unsafe;
|
2012-02-14 18:39:20 -06:00
|
|
|
mod logging;
|
|
|
|
|
|
|
|
// Concurrency
|
2011-12-13 18:25:51 -06:00
|
|
|
mod comm;
|
|
|
|
mod task;
|
2012-02-14 18:39:20 -06:00
|
|
|
mod future;
|
2011-12-13 18:25:51 -06:00
|
|
|
|
|
|
|
// Compiler support modules
|
|
|
|
|
|
|
|
mod extfmt;
|
|
|
|
|
|
|
|
|
2011-12-05 18:46:37 -06: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:
|