Skip to content

Commit bf4ddef

Browse files
committedSep 22, 2017
Remove all remnants of the collections feature.
1 parent 24b6165 commit bf4ddef

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed
 

Diff for: ‎src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![cfg_attr(feature = "alloc", feature(alloc))]
2-
#![cfg_attr(feature = "collections", feature(collections))]
32
#![no_std]
43

54
//! The _smoltcp_ library is built in a layered structure, with the layers corresponding
@@ -77,9 +76,6 @@ extern crate std;
7776
extern crate libc;
7877
#[cfg(feature = "alloc")]
7978
extern crate alloc;
80-
#[allow(deprecated)]
81-
#[cfg(feature = "collections")]
82-
extern crate collections;
8379
#[cfg(any(test, feature = "log"))]
8480
#[macro_use(log, log_enabled, trace, debug)]
8581
extern crate log;

Diff for: ‎src/phy/loopback.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use alloc::rc::Rc;
88
use std::vec::Vec;
99
#[cfg(feature = "std")]
1010
use std::collections::VecDeque;
11-
#[cfg(feature = "collections")]
12-
use collections::{Vec, VecDeque};
11+
#[cfg(feature = "alloc")]
12+
use alloc::{Vec, VecDeque};
1313

1414
use {Error, Result};
1515
use super::{Device, DeviceLimits};

Diff for: ‎src/phy/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ mod sys;
112112
mod tracer;
113113
mod fault_injector;
114114
mod pcap_writer;
115-
#[cfg(any(feature = "std", feature = "collections"))]
115+
#[cfg(any(feature = "std", feature = "alloc"))]
116116
mod loopback;
117117
#[cfg(feature = "raw_socket")]
118118
mod raw_socket;
@@ -125,7 +125,7 @@ pub use self::sys::wait;
125125
pub use self::tracer::Tracer;
126126
pub use self::fault_injector::FaultInjector;
127127
pub use self::pcap_writer::{PcapLinkType, PcapMode, PcapSink, PcapWriter};
128-
#[cfg(any(feature = "std", feature = "collections"))]
128+
#[cfg(any(feature = "std", feature = "alloc"))]
129129
pub use self::loopback::Loopback;
130130
#[cfg(any(feature = "raw_socket"))]
131131
pub use self::raw_socket::RawSocket;

Diff for: ‎src/socket/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'a, 'b: 'a, 'c: 'a + 'b> Set<'a, 'b, 'c> {
6161
ManagedSlice::Borrowed(_) => {
6262
panic!("adding a socket to a full SocketSet")
6363
}
64-
#[cfg(any(feature = "std", feature = "collections"))]
64+
#[cfg(any(feature = "std", feature = "alloc"))]
6565
ManagedSlice::Owned(ref mut sockets) => {
6666
sockets.push(None);
6767
let index = sockets.len() - 1;

Diff for: ‎src/storage/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! The `storage` module provides containers for use in other modules.
44
//! The containers support both pre-allocated memory, without the `std`
5-
//! and `collections` crates being available, and heap-allocated memory.
5+
//! or `alloc` crates being available, and heap-allocated memory.
66
77
mod assembler;
88
mod ring_buffer;

0 commit comments

Comments
 (0)
Please sign in to comment.