Skip to content

Commit f102a24

Browse files
committed
Auto merge of #5757 - Eh2406:minimal-versions-build, r=alexcrichton
Minimal versions build This is a conceptual rebase of #5275, to reiterate: Big thanks to @klausi for doing most of the work! Thanks to @matklad for pointing out that we could finish it. I don't know if I have the Travis config quite correct, advice definitely wellcome! edit: closes #5275
2 parents 5a386e9 + 4a8c70e commit f102a24

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ matrix:
2626
ALT=i686-unknown-linux-gnu
2727
rust: beta
2828

29+
# Minimum Rust supported channel. We enable these to make sure we
30+
# continue to work on the advertised minimum Rust version.
31+
# However cargo only supports the latest stable so this will get
32+
# increased every 6 weeks or so when the first PR to use a new feature.
33+
- env: TARGET=x86_64-unknown-linux-gnu
34+
ALT=i686-unknown-linux-gnu
35+
rust: 1.27.2
36+
script:
37+
- rustup toolchain install nightly
38+
- cargo +nightly generate-lockfile -Z minimal-versions
39+
- cargo -V
40+
- cargo check --tests
41+
2942
- env: TARGET=x86_64-unknown-linux-gnu
3043
ALT=i686-unknown-linux-gnu
3144
rust: nightly

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ atty = "0.2"
2121
crates-io = { path = "src/crates-io", version = "0.18" }
2222
crossbeam = "0.3"
2323
crypto-hash = "0.3.1"
24-
curl = "0.4.12"
24+
curl = "0.4.13"
2525
env_logger = "0.5.4"
2626
failure = "0.1.1"
2727
filetime = "0.2"
2828
flate2 = "1.0"
2929
fs2 = "0.4"
30-
git2 = "0.7.0"
30+
git2 = "0.7.3"
3131
git2-curl = "0.8.1"
3232
glob = "0.2.11"
3333
hex = "0.3"
3434
home = "0.3"
3535
ignore = "0.4"
3636
lazy_static = "1.0.0"
37-
jobserver = "0.1.9"
37+
jobserver = "0.1.11"
3838
lazycell = "1.0"
3939
libc = "0.2"
40-
libgit2-sys = "0.7.1"
4140
log = "0.4"
41+
libgit2-sys = "0.7.5"
4242
num_cpus = "1.0"
4343
rustfix = "0.4"
4444
same-file = "1"
@@ -64,7 +64,7 @@ num-traits = "0.2" # enable the default feature
6464
core-foundation = { version = "0.6.0", features = ["mac_os_10_7_support"] }
6565

6666
[target.'cfg(windows)'.dependencies]
67-
miow = "0.3"
67+
miow = "0.3.1"
6868

6969
[target.'cfg(windows)'.dependencies.winapi]
7070
version = "0.3"

appveyor.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ environment:
33
- TARGET: x86_64-pc-windows-msvc
44
OTHER_TARGET: i686-pc-windows-msvc
55
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
6+
- TARGET: x86_64-pc-windows-msvc
7+
OTHER_TARGET: i686-pc-windows-msvc
8+
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
9+
MINIMAL_VERSIONS: true
610

711
install:
812
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
913
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
1014
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
15+
- if defined MINIMAL_VERSIONS rustup toolchain install stable
1116
- rustup target add %OTHER_TARGET%
1217
- rustc -V
1318
- cargo -V
@@ -18,4 +23,5 @@ clone_depth: 1
1823
build: false
1924

2025
test_script:
21-
- cargo test
26+
- if defined MINIMAL_VERSIONS cargo +nightly generate-lockfile -Z minimal-versions && cargo +stable check --tests
27+
- if NOT defined MINIMAL_VERSIONS cargo test

0 commit comments

Comments
 (0)