Skip to content

Commit 074caea

Browse files
bors[bot]asomers
andcommitted
Merge #1085
1085: Minimal versions r=asomers a=asomers Build test with -Zminimal-versions in CI. Co-authored-by: Alan Somers <[email protected]>
2 parents 112438b + 570907f commit 074caea

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ matrix:
8888
- env: TARGET=x86_64-unknown-linux-gnu
8989
rust: stable
9090

91+
# Test that we can build with the lowest version of all dependencies.
92+
# "cargo test" doesn't work because some of our dev-dependencies, like
93+
# rand, can't build with thier own minimal dependencies.
94+
- rust: nightly
95+
script:
96+
- cargo update -Zminimal-versions
97+
- cargo build
98+
9199
before_install: set -e
92100

93101
install:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exclude = [
1818
[dependencies]
1919
libc = { git = "https://github.com/rust-lang/libc", features = [ "extra_traits" ] }
2020
bitflags = "1.0"
21-
cfg-if = "0.1.0"
21+
cfg-if = "0.1.2"
2222
void = "1.0.2"
2323

2424
[target.'cfg(target_os = "dragonfly")'.build-dependencies]

0 commit comments

Comments
 (0)