2014-01-24 08:40:54 +01:00
|
|
|
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
2012-12-04 01:48:01 +01:00
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-04-25 09:39:58 +02:00
|
|
|
//! # The Rust Standard Library
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! The Rust Standard Library provides the essential runtime
|
|
|
|
//! functionality for building portable Rust software.
|
|
|
|
//! It is linked to all Rust crates by default.
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! ## Intrinsic types and operations
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-05-09 22:57:37 +02:00
|
|
|
//! The [`ptr`](../core/ptr/index.html), [`mem`](../core/mem/index.html),
|
|
|
|
//! and [`cast`](../core/cast/index.html) modules deal with unsafe pointers,
|
2014-04-25 09:39:58 +02:00
|
|
|
//! memory manipulation, and coercion.
|
2014-05-09 22:57:37 +02:00
|
|
|
//! [`kinds`](../core/kinds/index.html) defines the special built-in traits,
|
|
|
|
//! and [`raw`](../core/raw/index.html) the runtime representation of Rust types.
|
2014-04-25 09:39:58 +02:00
|
|
|
//! These are some of the lowest-level building blocks of Rust
|
|
|
|
//! abstractions.
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! ## Math on primitive types and math traits
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! Although basic operations on primitive types are implemented
|
|
|
|
//! directly by the compiler, the standard library additionally
|
|
|
|
//! defines many common operations through traits defined in
|
|
|
|
//! mod [`num`](num/index.html).
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! ## Pervasive types
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! The [`option`](option/index.html) and [`result`](result/index.html)
|
|
|
|
//! modules define optional and error-handling types, `Option` and `Result`.
|
2014-05-09 22:57:37 +02:00
|
|
|
//! [`iter`](../core/iter/index.html) defines Rust's iterator protocol
|
2014-04-25 09:39:58 +02:00
|
|
|
//! along with a wide variety of iterators.
|
2014-05-09 22:57:37 +02:00
|
|
|
//! [`Cell` and `RefCell`](../core/cell/index.html) are for creating types that
|
2014-04-25 09:39:58 +02:00
|
|
|
//! manage their own mutability.
|
2013-10-31 23:09:24 +01:00
|
|
|
//!
|
2014-04-25 09:39:58 +02:00
|
|
|
//! ## Vectors, slices and strings
|
|
|
|
//!
|
|
|
|
//! The common container type, `Vec`, a growable vector backed by an
|
|
|
|
//! array, lives in the [`vec`](vec/index.html) module. References to
|
|
|
|
//! arrays, `&[T]`, more commonly called "slices", are built-in types
|
|
|
|
//! for which the [`slice`](slice/index.html) module defines many
|
|
|
|
//! methods.
|
|
|
|
//!
|
|
|
|
//! UTF-8 strings, `~str` and `&str`, are built-in types, and the
|
|
|
|
//! standard library defines methods for them on a variety of traits
|
|
|
|
//! in the [`str`](str/index.html) module. Rust strings are immutable;
|
|
|
|
//! use the `StrBuf` type defined in [`strbuf`](strbuf/index.html)
|
|
|
|
//! for a mutable string builder.
|
|
|
|
//!
|
|
|
|
//! For converting to strings use the [`format!`](fmt/index.html)
|
|
|
|
//! macro, and for converting from strings use the
|
|
|
|
//! [`FromStr`](from_str/index.html) trait.
|
|
|
|
//!
|
|
|
|
//! ## Platform abstractions
|
|
|
|
//!
|
|
|
|
//! Besides basic data types, the standard library is largely concerned
|
|
|
|
//! with abstracting over differences in common platforms, most notably
|
|
|
|
//! Windows and Unix derivatives. The [`os`](os/index.html) module
|
|
|
|
//! provides a number of basic functions for interacting with the
|
|
|
|
//! operating environment, including program arguments, environment
|
|
|
|
//! variables, and directory navigation. The [`path`](path/index.html)
|
|
|
|
//! module encapsulates the platform-specific rules for dealing
|
|
|
|
//! with file paths.
|
|
|
|
//!
|
|
|
|
//! `std` also includes modules for interoperating with the
|
|
|
|
//! C language: [`c_str`](c_str/index.html) and
|
|
|
|
//! [`c_vec`](c_vec/index.html).
|
|
|
|
//!
|
|
|
|
//! ## Concurrency, I/O, and the runtime
|
|
|
|
//!
|
|
|
|
//! The [`task`](task/index.html) module contains Rust's threading abstractions,
|
|
|
|
//! while [`comm`](comm/index.html) contains the channel types for message
|
|
|
|
//! passing. [`sync`](sync/index.html) contains further, primitive, shared
|
|
|
|
//! memory types, including [`atomics`](sync/atomics/index.html).
|
|
|
|
//!
|
|
|
|
//! Common types of I/O, including files, TCP, UPD, pipes, Unix domain sockets,
|
2014-05-07 08:29:57 +02:00
|
|
|
//! timers, and process spawning, are defined in the [`io`](io/index.html) module.
|
2014-04-25 09:39:58 +02:00
|
|
|
//!
|
|
|
|
//! Rust's I/O and concurrency depends on a small runtime interface
|
|
|
|
//! that lives, along with its support code, in mod [`rt`](rt/index.html).
|
|
|
|
//! While a notable part of the standard library's architecture, this
|
|
|
|
//! module is not intended for public use.
|
|
|
|
//!
|
|
|
|
//! ## The Rust prelude and macros
|
|
|
|
//!
|
2014-05-07 08:29:57 +02:00
|
|
|
//! Finally, the [`prelude`](prelude/index.html) defines a
|
2014-04-25 09:39:58 +02:00
|
|
|
//! common set of traits, types, and functions that are made available
|
|
|
|
//! to all code by default. [`macros`](macros/index.html) contains
|
2014-05-07 08:29:57 +02:00
|
|
|
//! all the standard macros, such as `assert!`, `fail!`, `println!`,
|
|
|
|
//! and `format!`, also available to all Rust code.
|
2012-11-30 09:47:45 +01:00
|
|
|
|
2014-05-13 00:30:24 +02:00
|
|
|
#![crate_id = "std#0.11.0-pre"]
|
2014-03-22 02:05:05 +01:00
|
|
|
#![comment = "The Rust standard library"]
|
|
|
|
#![license = "MIT/ASL2"]
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
#![crate_type = "dylib"]
|
|
|
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
|
|
|
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
|
|
|
html_root_url = "http://static.rust-lang.org/doc/master")]
|
|
|
|
#![feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
|
2014-04-09 00:08:08 +02:00
|
|
|
simd, linkage, default_type_params, phase, concat_idents, quad_precision_float)]
|
2013-10-03 03:10:16 +02:00
|
|
|
|
2013-05-17 22:12:42 +02:00
|
|
|
// Don't link to std. We are std.
|
2014-03-22 02:05:05 +01:00
|
|
|
#![no_std]
|
2012-04-19 10:00:52 +02:00
|
|
|
|
2014-05-07 04:03:14 +02:00
|
|
|
#![allow(deprecated)]
|
2014-04-04 06:52:13 +02:00
|
|
|
#![deny(missing_doc)]
|
2012-06-05 03:34:24 +02:00
|
|
|
|
2013-10-23 00:13:18 +02:00
|
|
|
// When testing libstd, bring in libuv as the I/O backend so tests can print
|
2013-11-11 07:46:32 +01:00
|
|
|
// things and all of the std::io tests have an I/O interface to run on top
|
2013-10-23 00:13:18 +02:00
|
|
|
// of
|
2014-02-20 04:29:58 +01:00
|
|
|
#[cfg(test)] extern crate rustuv;
|
|
|
|
#[cfg(test)] extern crate native;
|
|
|
|
#[cfg(test)] extern crate green;
|
log: Introduce liblog, the old std::logging
This commit moves all logging out of the standard library into an external
crate. This crate is the new crate which is responsible for all logging macros
and logging implementation. A few reasons for this change are:
* The crate map has always been a bit of a code smell among rust programs. It
has difficulty being loaded on almost all platforms, and it's used almost
exclusively for logging and only logging. Removing the crate map is one of the
end goals of this movement.
* The compiler has a fair bit of special support for logging. It has the
__log_level() expression as well as generating a global word per module
specifying the log level. This is unfairly favoring the built-in logging
system, and is much better done purely in libraries instead of the compiler
itself.
* Initialization of logging is much easier to do if there is no reliance on a
magical crate map being available to set module log levels.
* If the logging library can be written outside of the standard library, there's
no reason that it shouldn't be. It's likely that we're not going to build the
highest quality logging library of all time, so third-party libraries should
be able to provide just as high-quality logging systems as the default one
provided in the rust distribution.
With a migration such as this, the change does not come for free. There are some
subtle changes in the behavior of liblog vs the previous logging macros:
* The core change of this migration is that there is no longer a physical
log-level per module. This concept is still emulated (it is quite useful), but
there is now only a global log level, not a local one. This global log level
is a reflection of the maximum of all log levels specified. The previously
generated logging code looked like:
if specified_level <= __module_log_level() {
println!(...)
}
The newly generated code looks like:
if specified_level <= ::log::LOG_LEVEL {
if ::log::module_enabled(module_path!()) {
println!(...)
}
}
Notably, the first layer of checking is still intended to be "super fast" in
that it's just a load of a global word and a compare. The second layer of
checking is executed to determine if the current module does indeed have
logging turned on.
This means that if any module has a debug log level turned on, all modules
with debug log levels get a little bit slower (they all do more expensive
dynamic checks to determine if they're turned on or not).
Semantically, this migration brings no change in this respect, but
runtime-wise, this will have a perf impact on some code.
* A `RUST_LOG=::help` directive will no longer print out a list of all modules
that can be logged. This is because the crate map will no longer specify the
log levels of all modules, so the list of modules is not known. Additionally,
warnings can no longer be provided if a malformed logging directive was
supplied.
The new "hello world" for logging looks like:
#[phase(syntax, link)]
extern crate log;
fn main() {
debug!("Hello, world!");
}
2014-03-09 07:11:44 +01:00
|
|
|
#[cfg(test)] #[phase(syntax, link)] extern crate log;
|
2013-10-23 00:13:18 +02:00
|
|
|
|
2014-03-14 19:16:10 +01:00
|
|
|
// Make and rand accessible for benchmarking/testcases
|
2014-03-02 01:23:04 +01:00
|
|
|
#[cfg(test)] extern crate rand;
|
2013-07-22 18:49:04 +02:00
|
|
|
|
2014-02-24 19:16:03 +01:00
|
|
|
extern crate libc;
|
2014-05-01 05:04:56 +02:00
|
|
|
extern crate core;
|
2014-02-24 19:16:03 +01:00
|
|
|
|
2013-06-17 08:21:49 +02:00
|
|
|
// Make std testable by not duplicating lang items. See #2912
|
2014-02-14 19:10:06 +01:00
|
|
|
#[cfg(test)] extern crate realstd = "std";
|
2013-05-18 00:28:44 +02:00
|
|
|
#[cfg(test)] pub use kinds = realstd::kinds;
|
|
|
|
#[cfg(test)] pub use ops = realstd::ops;
|
|
|
|
#[cfg(test)] pub use cmp = realstd::cmp;
|
2014-03-10 22:55:15 +01:00
|
|
|
#[cfg(test)] pub use ty = realstd::ty;
|
2014-05-06 03:56:44 +02:00
|
|
|
#[cfg(test)] pub use owned = realstd::owned;
|
2013-03-27 03:53:33 +01:00
|
|
|
|
2014-05-07 17:20:22 +02:00
|
|
|
#[cfg(not(test))] pub use cmp = core::cmp;
|
2014-05-01 05:22:55 +02:00
|
|
|
#[cfg(not(test))] pub use kinds = core::kinds;
|
2014-05-01 05:24:32 +02:00
|
|
|
#[cfg(not(test))] pub use ops = core::ops;
|
2014-05-07 17:20:22 +02:00
|
|
|
#[cfg(not(test))] pub use owned = core::owned;
|
2014-05-01 05:26:12 +02:00
|
|
|
#[cfg(not(test))] pub use ty = core::ty;
|
2014-05-01 05:22:55 +02:00
|
|
|
|
2014-05-01 05:36:58 +02:00
|
|
|
pub use core::any;
|
2014-05-01 06:11:17 +02:00
|
|
|
pub use core::bool;
|
2014-05-01 20:19:56 +02:00
|
|
|
pub use core::cell;
|
2014-05-01 05:33:08 +02:00
|
|
|
pub use core::char;
|
2014-05-01 05:55:38 +02:00
|
|
|
pub use core::clone;
|
2014-05-01 05:27:26 +02:00
|
|
|
pub use core::container;
|
2014-05-01 05:46:51 +02:00
|
|
|
pub use core::default;
|
2014-05-01 05:04:56 +02:00
|
|
|
pub use core::intrinsics;
|
2014-05-01 06:41:03 +02:00
|
|
|
pub use core::iter;
|
2014-05-01 05:13:05 +02:00
|
|
|
pub use core::mem;
|
2014-05-01 05:17:50 +02:00
|
|
|
pub use core::ptr;
|
2014-05-01 05:38:31 +02:00
|
|
|
pub use core::raw;
|
2014-05-01 06:02:13 +02:00
|
|
|
pub use core::tuple;
|
2014-05-01 05:04:56 +02:00
|
|
|
|
2014-03-11 21:38:36 +01:00
|
|
|
// Run tests with libgreen instead of libnative.
|
|
|
|
//
|
|
|
|
// FIXME: This egregiously hacks around starting the test runner in a different
|
|
|
|
// threading mode than the default by reaching into the auto-generated
|
|
|
|
// '__test' module.
|
|
|
|
#[cfg(test)] #[start]
|
|
|
|
fn start(argc: int, argv: **u8) -> int {
|
2014-03-24 18:40:36 +01:00
|
|
|
green::start(argc, argv, rustuv::event_loop, __test::main)
|
2014-03-11 21:38:36 +01:00
|
|
|
}
|
|
|
|
|
2014-04-30 05:05:51 +02:00
|
|
|
/* Exported macros */
|
|
|
|
|
2014-02-17 06:40:26 +01:00
|
|
|
pub mod macros;
|
2014-04-30 05:05:51 +02:00
|
|
|
pub mod bitflags;
|
2014-01-24 08:40:54 +01:00
|
|
|
|
Add generation of static libraries to rustc
This commit implements the support necessary for generating both intermediate
and result static rust libraries. This is an implementation of my thoughts in
https://mail.mozilla.org/pipermail/rust-dev/2013-November/006686.html.
When compiling a library, we still retain the "lib" option, although now there
are "rlib", "staticlib", and "dylib" as options for crate_type (and these are
stackable). The idea of "lib" is to generate the "compiler default" instead of
having too choose (although all are interchangeable). For now I have left the
"complier default" to be a dynamic library for size reasons.
Of the rust libraries, lib{std,extra,rustuv} will bootstrap with an
rlib/dylib pair, but lib{rustc,syntax,rustdoc,rustpkg} will only be built as a
dynamic object. I chose this for size reasons, but also because you're probably
not going to be embedding the rustc compiler anywhere any time soon.
Other than the options outlined above, there are a few defaults/preferences that
are now opinionated in the compiler:
* If both a .dylib and .rlib are found for a rust library, the compiler will
prefer the .rlib variant. This is overridable via the -Z prefer-dynamic option
* If generating a "lib", the compiler will generate a dynamic library. This is
overridable by explicitly saying what flavor you'd like (rlib, staticlib,
dylib).
* If no options are passed to the command line, and no crate_type is found in
the destination crate, then an executable is generated
With this change, you can successfully build a rust program with 0 dynamic
dependencies on rust libraries. There is still a dynamic dependency on
librustrt, but I plan on removing that in a subsequent commit.
This change includes no tests just yet. Our current testing
infrastructure/harnesses aren't very amenable to doing flavorful things with
linking, so I'm planning on adding a new mode of testing which I believe belongs
as a separate commit.
Closes #552
2013-11-15 23:03:29 +01:00
|
|
|
mod rtdeps;
|
2013-03-07 04:09:17 +01:00
|
|
|
|
2013-01-09 04:37:25 +01:00
|
|
|
/* The Prelude. */
|
|
|
|
|
|
|
|
pub mod prelude;
|
2011-12-14 01:25:51 +01:00
|
|
|
|
2013-10-31 23:09:24 +01:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
/* Primitive types */
|
2012-04-15 02:21:10 +02:00
|
|
|
|
2014-01-08 12:57:31 +01:00
|
|
|
#[path = "num/float_macros.rs"] mod float_macros;
|
2013-05-13 03:14:40 +02:00
|
|
|
#[path = "num/int_macros.rs"] mod int_macros;
|
|
|
|
#[path = "num/uint_macros.rs"] mod uint_macros;
|
|
|
|
|
|
|
|
#[path = "num/int.rs"] pub mod int;
|
|
|
|
#[path = "num/i8.rs"] pub mod i8;
|
|
|
|
#[path = "num/i16.rs"] pub mod i16;
|
|
|
|
#[path = "num/i32.rs"] pub mod i32;
|
|
|
|
#[path = "num/i64.rs"] pub mod i64;
|
|
|
|
|
|
|
|
#[path = "num/uint.rs"] pub mod uint;
|
|
|
|
#[path = "num/u8.rs"] pub mod u8;
|
|
|
|
#[path = "num/u16.rs"] pub mod u16;
|
|
|
|
#[path = "num/u32.rs"] pub mod u32;
|
|
|
|
#[path = "num/u64.rs"] pub mod u64;
|
|
|
|
|
|
|
|
#[path = "num/f32.rs"] pub mod f32;
|
|
|
|
#[path = "num/f64.rs"] pub mod f64;
|
2012-11-30 09:47:45 +01:00
|
|
|
|
2014-03-09 00:11:52 +01:00
|
|
|
pub mod slice;
|
2014-03-20 08:35:51 +01:00
|
|
|
pub mod vec;
|
2012-11-30 09:47:45 +01:00
|
|
|
pub mod str;
|
2014-04-03 01:54:22 +02:00
|
|
|
pub mod strbuf;
|
2012-11-30 09:47:45 +01:00
|
|
|
|
2013-04-22 21:42:25 +02:00
|
|
|
pub mod ascii;
|
|
|
|
|
2013-10-10 17:45:52 +02:00
|
|
|
pub mod rc;
|
2013-11-20 05:20:06 +01:00
|
|
|
pub mod gc;
|
2011-12-14 01:25:51 +01:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
/* Common traits */
|
|
|
|
|
|
|
|
pub mod from_str;
|
2012-10-04 04:24:06 +02:00
|
|
|
pub mod num;
|
|
|
|
pub mod to_str;
|
2012-11-30 09:47:45 +01:00
|
|
|
pub mod hash;
|
2012-08-02 01:04:43 +02:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
/* Common data structures */
|
|
|
|
|
|
|
|
pub mod result;
|
2014-05-07 06:25:36 +02:00
|
|
|
pub mod option;
|
2012-11-30 09:47:45 +01:00
|
|
|
|
|
|
|
/* Tasks and communication */
|
|
|
|
|
2012-11-28 21:33:00 +01:00
|
|
|
pub mod task;
|
2013-02-02 12:10:12 +01:00
|
|
|
pub mod comm;
|
2013-05-08 15:02:21 +02:00
|
|
|
pub mod local_data;
|
2013-12-13 02:27:37 +01:00
|
|
|
pub mod sync;
|
2012-02-22 13:06:38 +01:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
|
|
|
|
/* Runtime and platform support */
|
2011-12-14 01:25:51 +01:00
|
|
|
|
2013-08-04 02:13:14 +02:00
|
|
|
pub mod c_str;
|
2014-03-14 19:16:10 +01:00
|
|
|
pub mod c_vec;
|
2012-10-04 04:24:06 +02:00
|
|
|
pub mod os;
|
2013-11-11 07:46:32 +01:00
|
|
|
pub mod io;
|
2012-10-04 04:24:06 +02:00
|
|
|
pub mod path;
|
2013-07-29 10:12:41 +02:00
|
|
|
pub mod fmt;
|
2012-10-04 04:24:06 +02:00
|
|
|
pub mod cleanup;
|
2013-10-31 23:09:24 +01:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
/* Unsupported interfaces */
|
|
|
|
|
2014-01-05 15:09:07 +01:00
|
|
|
#[unstable]
|
|
|
|
pub mod repr;
|
|
|
|
#[unstable]
|
|
|
|
pub mod reflect;
|
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
// Private APIs
|
2014-01-05 15:09:07 +01:00
|
|
|
#[unstable]
|
2013-02-28 04:53:31 +01:00
|
|
|
pub mod unstable;
|
2013-10-31 23:09:24 +01:00
|
|
|
|
2012-11-30 09:47:45 +01:00
|
|
|
/* For internal use, not exported */
|
|
|
|
|
2013-05-03 23:10:32 +02:00
|
|
|
mod unicode;
|
2013-04-28 03:57:15 +02:00
|
|
|
|
2013-07-12 23:43:57 +02:00
|
|
|
// FIXME #7809: This shouldn't be pub, and it should be reexported under 'unstable'
|
2013-04-28 03:57:15 +02:00
|
|
|
// but name resolution doesn't work without it being pub.
|
2014-01-05 15:09:07 +01:00
|
|
|
#[unstable]
|
2013-04-28 03:57:15 +02:00
|
|
|
pub mod rt;
|
2012-11-30 09:47:45 +01:00
|
|
|
|
2012-11-28 21:33:00 +01:00
|
|
|
// A curious inner-module that's not exported that contains the binding
|
2013-05-18 00:28:44 +02:00
|
|
|
// 'std' so that macro-expanded references to std::error and such
|
|
|
|
// can be resolved within libstd.
|
2013-03-14 03:12:55 +01:00
|
|
|
#[doc(hidden)]
|
2013-05-21 00:20:16 +02:00
|
|
|
mod std {
|
|
|
|
pub use clone;
|
|
|
|
pub use cmp;
|
2013-12-06 02:56:17 +01:00
|
|
|
pub use comm;
|
2013-10-11 23:20:34 +02:00
|
|
|
pub use fmt;
|
2014-02-22 06:33:23 +01:00
|
|
|
pub use hash;
|
2013-12-06 02:56:17 +01:00
|
|
|
pub use io;
|
2013-05-21 00:20:16 +02:00
|
|
|
pub use kinds;
|
2013-07-14 10:43:31 +02:00
|
|
|
pub use local_data;
|
2013-10-11 23:20:34 +02:00
|
|
|
pub use option;
|
2013-05-25 04:35:29 +02:00
|
|
|
pub use os;
|
2013-10-27 20:12:40 +01:00
|
|
|
pub use rt;
|
2013-10-11 23:20:34 +02:00
|
|
|
pub use str;
|
|
|
|
pub use to_str;
|
2014-03-10 22:55:15 +01:00
|
|
|
pub use ty;
|
2013-10-11 23:20:34 +02:00
|
|
|
pub use unstable;
|
2014-04-03 13:28:45 +02:00
|
|
|
pub use vec;
|
2014-05-04 22:20:47 +02:00
|
|
|
|
|
|
|
// The test runner requires std::slice::Vector, so re-export std::slice just for it.
|
|
|
|
#[cfg(test)] pub use slice;
|
2013-05-21 00:20:16 +02:00
|
|
|
}
|