Add the use_collections feature.

This commit is contained in:
whitequark 2017-01-10 12:09:26 +00:00
parent 1ea9a5125b
commit 37afb84d74
2 changed files with 10 additions and 4 deletions

View File

@ -23,5 +23,6 @@ getopts = "0.2"
[features]
use_std = ["managed/use_std", "libc"]
use_alloc = ["managed/use_alloc"]
use_collections = ["managed/use_collections"]
use_log = ["log"]
default = ["use_std", "use_log"]

View File

@ -82,15 +82,20 @@ smoltcp = { version = ..., default-features = false, features = [...] }
### Feature `use_std`
The `use_std` feature enables use of buffers owned by the networking stack through a dependency
on `std::boxed::Box`. It also enables `smoltcp::phy::RawSocket` and `smoltcp::phy::TapInterface`,
if the platform supports it.
The `use_std` feature enables use of objects and slices owned by the networking stack through a
dependency on `std::boxed::Box` and `std::vec::Vec`. It also enables `smoltcp::phy::RawSocket`
and `smoltcp::phy::TapInterface`, if the platform supports it.
### Feature `use_alloc`
The `use_std` feature enables use of buffers owned by the networking stack through a dependency
The `use_std` feature enables use of objects owned by the networking stack through a dependency
on `alloc::boxed::Box`. This only works on nightly rustc.
### Feature `use_collections`
The `use_std` feature enables use of slices owned by the networking stack through a dependency
on `collections::vec::Vec`. This only works on nightly rustc.
### Feature `use_log`
The `use_log` feature enables logging of events within the networking stack through