Skip to content

Commit 57f3b6e

Browse files
committed
core: Add a crate doc block
1 parent 325cc51 commit 57f3b6e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/libcore/lib.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@
99
// except according to those terms.
1010

1111
//! The Rust core library
12+
//!
13+
//! This library is meant to represent the core functionality of rust that is
14+
//! maximally portable to other platforms. To that exent, this library has no
15+
//! knowledge of things like allocation, threads, I/O, etc. This library is
16+
//! built on the assumption of a few existing symbols:
17+
//!
18+
//! * `memcpy`, `memcmp`, `memset` - These are core memory routines which are
19+
//! often generated by LLVM. Additionally, this library can make explicit
20+
//! calls to these funcitons. Their signatures are the same as found in C.
21+
//!
22+
//! * `rust_begin_unwind` - This function takes three arguments, a
23+
//! `&fmt::Arguments`, a `&str`, and a `uint. These three arguments dictate
24+
//! the failure message, the file at which failure was invoked, and the line.
25+
//! It is up to consumers of this core library to define this failure
26+
//! function; it is only required to never return.
27+
//!
28+
//! Currently, it is *not* recommended to use the core library. The stable
29+
//! functionality of libcore is exported directly into the
30+
//! [standard library](../std/index.html). The composition of this library is
31+
//! subject to change over time, only the interface exposed through libstd is
32+
//! intended to be stable.
1233
1334
#![crate_id = "core#0.11.0-pre"]
1435
#![license = "MIT/ASL2"]

0 commit comments

Comments
 (0)