Skip to content

Commit feaa909

Browse files
committed
Add testing of minimal versions
Closes rust-random#741 This seems to require a couple of hacks unfortunately.
1 parent 9fb1658 commit feaa909

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ matrix:
6666
env: DESCRIPTION="Miri, nightly"
6767
script:
6868
- sh utils/ci/miri.sh
69+
70+
- rust: nightly
71+
os: linux
72+
env: DESCRIPTION="Minimal dep versions"
73+
script:
74+
- cargo generate-lockfile -Z minimal-versions
75+
- bash utils/ci/script.sh
6976

7077
before_install:
7178
- set -e

rand_distr/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ rand = { path = "..", version = "0.7" }
2424
[dev-dependencies]
2525
rand_pcg = { version = "0.2", path = "../rand_pcg" }
2626
# Histogram implementation for testing uniformity
27-
average = "0.9.2"
27+
average = "0.10.0"
28+
# Not a direct dependency but required to boost the minimum version:
29+
conv = "0.3.2"

rand_isaac/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ serde1 = ["serde", "rand_core/serde1"]
2323

2424
[dependencies]
2525
rand_core = { path = "../rand_core", version = "0.5" }
26-
serde = { version = "1", features = ["derive"], optional = true }
26+
serde = { version = "1.0.63", features = ["derive"], optional = true }
27+
# Not a direct dependency but required to boost the minimum version:
28+
serde_derive = { version = "1.0.63", optional = true }
2729

2830
[dev-dependencies]
2931
# This is for testing serde, unfortunately we can't specify feature-gated dev
3032
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
31-
bincode = "1"
33+
bincode = "1.1.4"

0 commit comments

Comments
 (0)