Merge pull request #27 from bluss/nodrop-next

Nodrop next
This commit is contained in:
bluss
2016-02-06 19:56:58 +01:00
3 changed files with 21 additions and 11 deletions
+11 -6
View File
@@ -4,8 +4,12 @@ matrix:
include: include:
- rust: 1.2.0 - rust: 1.2.0
- rust: stable - rust: stable
env:
- NODEFAULT=1
- rust: beta - rust: beta
- rust: nightly - rust: nightly
env:
- NODEFAULT=1
- rust: nightly - rust: nightly
env: env:
- NODROP_FEATURES='no_drop_flag use_needs_drop' - NODROP_FEATURES='no_drop_flag use_needs_drop'
@@ -14,10 +18,11 @@ branches:
- master - master
script: script:
- | - |
[ -z "$NODROP_FEATURES" ] && cargo build --verbose --features "$FEATURES" ([ ! -z "$NODROP_FEATURES" ] || cargo build --verbose --features "$FEATURES") &&
[ -z "$NODROP_FEATURES" ] && cargo test --verbose --features "$FEATURES" ([ ! -z "$NODROP_FEATURES" ] || cargo test --verbose --features "$FEATURES") &&
[ -z "$NODROP_FEATURES" ] && cargo test --release --verbose --features "$FEATURES" ([ ! -z "$NODROP_FEATURES" ] || cargo test --release --verbose --features "$FEATURES") &&
[ -z "$NODROP_FEATURES" ] && cargo bench --verbose --features "$FEATURES" -- --test ([ ! -z "$NODROP_FEATURES" ] || cargo bench --verbose --features "$FEATURES" -- --test) &&
[ -z "$NODROP_FEATURES" ] && cargo doc --verbose --features "$FEATURES" ([ ! -z "$NODROP_FEATURES" ] || cargo doc --verbose --features "$FEATURES") &&
cargo test --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES" ([ "$NODEFAULT" != 1 ] || cargo build --verbose --manifest-path=nodrop/Cargo.toml --no-default-features) &&
cargo test --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES" &&
cargo bench --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES" -- --test cargo bench --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES" -- --test
+4
View File
@@ -57,6 +57,10 @@ Recent Changes (arrayvec)
Recent Changes (nodrop) Recent Changes (nodrop)
----------------------- -----------------------
- 0.1.6
- Add feature std, which you can opt out of to use ``no_std``.
- 0.1.5 - 0.1.5
- Added crate feature ``use_needs_drop`` which is a nightly-only - Added crate feature ``use_needs_drop`` which is a nightly-only
+6 -5
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "nodrop" name = "nodrop"
version = "0.1.5" version = "0.1.6"
authors = ["bluss"] authors = ["bluss"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
@@ -9,14 +9,14 @@ description = "A wrapper type to inhibit drop (destructor)."
documentation = "http://bluss.github.io/arrayvec/doc/nodrop" documentation = "http://bluss.github.io/arrayvec/doc/nodrop"
repository = "https://github.com/bluss/arrayvec" repository = "https://github.com/bluss/arrayvec"
keywords = ["container", "drop"] keywords = ["container", "drop", "no_std"]
[features] [features]
default = ["std"] default = ["std"]
# Default, Rust 1.6+ # Default, requires Rust 1.6+ to disable
# Use libstd # Use libstd
std = [] std = ["odds/std"]
# Optional, nightly channel # Optional, nightly channel
# Use no drop flag. See API doc for more info. # Use no drop flag. See API doc for more info.
@@ -27,4 +27,5 @@ no_drop_flag = []
use_needs_drop = [] use_needs_drop = []
[dependencies.odds] [dependencies.odds]
version = "0.2" version = "0.2.12"
default-features = false