Skip to content

Commit

Permalink
Use liballoc instead of libcollections in no_std mode
Browse files Browse the repository at this point in the history
libcollections was deprecated in rust-lang/rust#42648 and its contents
were moved to liballoc.
  • Loading branch information
mbrubeck committed Jun 20, 2017
1 parent b7f5fe5 commit a331b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ documentation = "http://doc.servo.org/smallvec/"

[features]
heapsizeof = ["heapsize", "std"]
collections = []
std = []
default = ["std"]

Expand Down
6 changes: 3 additions & 3 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
//! locality and reducing allocator traffic for workloads that fit within the inline buffer.

#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(collections))]
#![cfg_attr(not(feature = "std"), feature(alloc))]


#[cfg(not(feature = "std"))]
extern crate collections;
extern crate alloc;

#[cfg(not(feature = "std"))]
use collections::Vec;
use alloc::Vec;

#[cfg(feature="heapsizeof")]
extern crate heapsize;
Expand Down

0 comments on commit a331b94

Please sign in to comment.