Skip to content

Commit 498d0f1

Browse files
committed
Use liballoc instead of libcollections in no_std mode
libcollections was deprecated in rust-lang/rust#42648 and its contents were moved to liballoc.
1 parent 2549c2a commit 498d0f1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ documentation = "http://doc.servo.org/smallvec/"
1111

1212
[features]
1313
heapsizeof = ["heapsize", "std"]
14-
collections = []
1514
std = []
1615
default = ["std"]
1716

lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
//! locality and reducing allocator traffic for workloads that fit within the inline buffer.
88
99
#![cfg_attr(not(feature = "std"), no_std)]
10-
#![cfg_attr(not(feature = "std"), feature(collections))]
10+
#![cfg_attr(not(feature = "std"), feature(alloc))]
1111

1212

1313
#[cfg(not(feature = "std"))]
14-
extern crate collections;
14+
extern crate alloc;
1515

1616
#[cfg(not(feature = "std"))]
17-
use collections::Vec;
17+
use alloc::Vec;
1818

1919
#[cfg(feature="heapsizeof")]
2020
extern crate heapsize;

0 commit comments

Comments
 (0)