nodrop: Add nightly feature use_union

Use a separate crate (nodrop-union) so that we can conditionally use the
new union keyword without disrupting compatibility.
This commit is contained in:
bluss
2016-09-06 11:21:40 +02:00
parent ddd09cf04d
commit 57348a2677
5 changed files with 287 additions and 109 deletions
+7
View File
@@ -22,6 +22,13 @@ std = ["odds/std"]
# Use `needs_drop` to skip overwriting if not necessary
use_needs_drop = []
# Optional, nightly channel
use_union = ["nodrop-union"]
[dependencies.odds]
version = "0.2.12"
default-features = false
[dependencies.nodrop-union]
path = "../nodrop-union"
optional = true