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 4c1615b
Showing 1 changed file with 3 additions and 3 deletions.
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 4c1615b

Please sign in to comment.