]> git.lizzy.rs Git - rust.git/blob - src/libcollections/lib.rs
de5d6df328cbd4fd7ca975e115c925b21c8b7fbe
[rust.git] / src / libcollections / lib.rs
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![crate_name = "collections"]
12 #![crate_type = "rlib"]
13 #![allow(unused_attributes)]
14 #![unstable(feature = "collections",
15             reason = "this library is unlikely to be stabilized in its current \
16                       form or name",
17             issue = "27783")]
18 #![rustc_deprecated(since = "1.20.0",
19                     reason = "collections moved to `alloc`")]
20 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
21        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
22        html_root_url = "https://doc.rust-lang.org/nightly/",
23        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
24        test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
25 #![no_std]
26 #![needs_allocator]
27 #![deny(warnings)]
28
29 #![feature(alloc)]
30 #![feature(collections_range)]
31 #![feature(macro_reexport)]
32 #![feature(needs_allocator)]
33 #![feature(staged_api)]
34
35 //! Collection types
36 //!
37 //! See [`std::collections`](../std/collections/index.html) for a detailed
38 //! discussion of collections in Rust.
39
40 #[macro_reexport(vec, format)]
41 extern crate alloc;
42
43 pub use alloc::Bound;
44
45 pub use alloc::binary_heap;
46 pub use alloc::borrow;
47 pub use alloc::fmt;
48 pub use alloc::linked_list;
49 pub use alloc::range;
50 pub use alloc::slice;
51 pub use alloc::str;
52 pub use alloc::string;
53 pub use alloc::vec;
54 pub use alloc::vec_deque;
55
56 pub use alloc::btree_map;
57 pub use alloc::btree_set;
58
59 #[doc(no_inline)]
60 pub use alloc::binary_heap::BinaryHeap;
61 #[doc(no_inline)]
62 pub use alloc::btree_map::BTreeMap;
63 #[doc(no_inline)]
64 pub use alloc::btree_set::BTreeSet;
65 #[doc(no_inline)]
66 pub use alloc::linked_list::LinkedList;
67 #[doc(no_inline)]
68 pub use alloc::vec_deque::VecDeque;
69 #[doc(no_inline)]
70 pub use alloc::string::String;
71 #[doc(no_inline)]
72 pub use alloc::vec::Vec;