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.
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.
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 \
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))))]
30 #![feature(collections_range)]
31 #![feature(macro_reexport)]
32 #![feature(needs_allocator)]
33 #![feature(staged_api)]
37 //! See [`std::collections`](../std/collections/index.html) for a detailed
38 //! discussion of collections in Rust.
40 #[macro_reexport(vec, format)]
45 pub use alloc::binary_heap;
46 pub use alloc::borrow;
48 pub use alloc::linked_list;
52 pub use alloc::string;
54 pub use alloc::vec_deque;
56 pub use alloc::btree_map;
57 pub use alloc::btree_set;
60 pub use alloc::binary_heap::BinaryHeap;
62 pub use alloc::btree_map::BTreeMap;
64 pub use alloc::btree_set::BTreeSet;
66 pub use alloc::linked_list::LinkedList;
68 pub use alloc::vec_deque::VecDeque;
70 pub use alloc::string::String;
72 pub use alloc::vec::Vec;