diff --git a/Cargo.toml b/Cargo.toml index e14cb7f..ae04b7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "arrayvec" -version = "0.3.16" +version = "0.3.17" authors = ["bluss"] license = "MIT/Apache-2.0" @@ -15,10 +15,11 @@ version = "0.2.12" default-features = false [dependencies.nodrop] -version = "0.1.6" +version = "0.1.8" path = "nodrop" default-features = false [features] default = ["std"] std = ["odds/std", "nodrop/std"] +use_union = ["nodrop/use_union"] diff --git a/Makefile b/Makefile index bed90ff..2617b1e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ -DOCCRATES = arrayvec nodrop odds +DOCCRATES = arrayvec nodrop nodrop_union odds # deps to delete the generated docs RMDOCS = -FEATURES = odds/unstable +FEATURES = "odds/unstable nodrop/use_union" VERSIONS = $(patsubst %,target/VERS/%,$(DOCCRATES)) diff --git a/README.rst b/README.rst index 564520b..6fd1407 100644 --- a/README.rst +++ b/README.rst @@ -22,6 +22,11 @@ __ http://bluss.github.io/arrayvec Recent Changes (arrayvec) ------------------------- +- 0.3.17 + + - Added crate feature ``use_union`` which forwards to the nodrop crate feature + - Added methods ``.is_full()`` to ``ArrayVec`` and ``ArrayString``. + - 0.3.16 - Added method ``.retain()`` to ``ArrayVec``. diff --git a/src/lib.rs b/src/lib.rs index f651811..15dfc7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,12 @@ //! - Optional, enabled by default //! - Requires Rust 1.6 *to disable* //! - Use libstd +//! +//! - `use_union` +//! - Optional +//! - Requires Rust nightly channel +//! - Use the unstable feature untagged unions for the internal implementation, +//! which has reduced space overhead #![cfg_attr(not(feature="std"), no_std)] extern crate odds; extern crate nodrop;