Skip to content

Commit 1eef88c

Browse files
authored
Merge pull request #762 from dhardy/master
Bump MSRV to 1.32.0
2 parents eac08a9 + 67069d1 commit 1eef88c

File tree

13 files changed

+27
-28
lines changed

13 files changed

+27
-28
lines changed

.travis.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ sudo: false
3434
# CRATE FEATURES, TESTS, AND SUB-CRATES
3535
# Goal: Run unit tests, doctests, examples, and test benchmarks for all crates,
3636
# in configurations that cover all interesting combinations of features.
37-
# (`--lib` only runs unit tests just like `--tests`, but the latter is not
38-
# available in Rust 1.22.0)
3937
# Tests run on rand:
4038
# - test no_std support, but only the unit tests:
41-
# `cargo test --lib --no-default-features`
39+
# `cargo test --tests --no-default-features`
4240
# - run unit tests and doctests with all features which are available on stable:
4341
# `cargo test --features=serde1,log`
4442
# - test examples:
@@ -47,7 +45,7 @@ sudo: false
4745
# - run unit tests and doctests with all features which are available on nightly:
4846
# `cargo test --all-features`
4947
# - test no_std support, including the nightly alloc feature:
50-
# cargo test --lib --no-default-features --features=alloc
48+
# cargo test --tests --no-default-features --features=alloc
5149
# - run benchmarks as tests:
5250
# `cargo test --benches --features=nightly`
5351
# Tests on subcrates:
@@ -58,12 +56,12 @@ sudo: false
5856
# NOTE: SIMD support is unreliable on nightly; we track the latest release
5957
matrix:
6058
include:
61-
- rust: 1.22.0
62-
env: DESCRIPTION="Linux, 1.22.0"
59+
- rust: 1.32.0
60+
env: DESCRIPTION="Linux, 1.32.0"
6361
os: linux
6462
script:
6563
# Differs from standard script: rand_pcg features
66-
- cargo test --lib --no-default-features
64+
- cargo test --tests --no-default-features
6765
# TODO: add simd_support feature:
6866
- cargo test --features=serde1,log
6967
- cargo test --examples
@@ -78,12 +76,12 @@ matrix:
7876
- cargo test --manifest-path rand_jitter/Cargo.toml
7977
- cargo test --manifest-path rand_os/Cargo.toml
8078

81-
- rust: 1.22.0
82-
env: DESCRIPTION="OSX, 1.22.0"
79+
- rust: 1.32.0
80+
env: DESCRIPTION="OSX, 1.32.0"
8381
os: osx
8482
script:
8583
# Differs from standard script: rand_pcg features
86-
- cargo test --lib --no-default-features
84+
- cargo test --tests --no-default-features
8785
# TODO: add simd_support feature:
8886
- cargo test --features=serde1,log
8987
- cargo test --examples
@@ -108,7 +106,7 @@ matrix:
108106
- rustup target add aarch64-apple-ios
109107
script:
110108
# Differs from standard script: includes aarch64-apple-ios cross-build
111-
- cargo test --lib --no-default-features
109+
- cargo test --tests --no-default-features
112110
# TODO: add simd_support feature:
113111
- cargo test --features=serde1,log
114112
- cargo test --examples
@@ -137,7 +135,7 @@ matrix:
137135
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
138136
script:
139137
# Differs from standard script: alloc feature, all features, doc build
140-
- cargo test --lib --no-default-features --features=alloc
138+
- cargo test --tests --no-default-features --features=alloc
141139
- cargo test --all-features
142140
- cargo test --benches --features=nightly
143141
- cargo test --examples
@@ -166,7 +164,7 @@ matrix:
166164
- cargo deadlinks -V
167165
script:
168166
# Differs from standard script: alloc feature, all features, doc build
169-
- cargo test --lib --no-default-features --features=alloc
167+
- cargo test --tests --no-default-features --features=alloc
170168
- cargo test --all-features
171169
- cargo test --benches --features=nightly
172170
- cargo test --examples
@@ -257,7 +255,7 @@ before_install:
257255
- rustup self update
258256

259257
script:
260-
- cargo test --lib --no-default-features
258+
- cargo test --tests --no-default-features
261259
# TODO: add simd_support feature:
262260
- cargo test --features=serde1,log
263261
- cargo test --examples

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand)
88
[![API](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
A Rust library for random number generation.
1212

@@ -57,8 +57,9 @@ reading the [Upgrade Guide](https://rust-random.github.io/book/update.html).
5757

5858
### Rust version requirements
5959

60-
Since version 0.5, Rand requires **Rustc version 1.22 or greater**.
61-
Rand 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
60+
Since version 0.7 (unreleased), Rand requires **Rustc version 1.32 or greater**.
61+
Rand 0.5 requires Rustc 1.22 or greater while versions
62+
0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
6263
greater. Subsets of the Rand code may work with older Rust versions, but this
6364
is not supported.
6465

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install:
3232
build: false
3333

3434
test_script:
35-
- cargo test --lib --no-default-features --features alloc
35+
- cargo test --tests --no-default-features --features alloc
3636
# TODO: use --all-features once simd_support is sufficiently stable:
3737
- cargo test --features=serde1,log
3838
- cargo test --benches --features=nightly

rand_chacha/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_chacha)
88
[![API](https://docs.rs/rand_chacha/badge.svg)](https://docs.rs/rand_chacha)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
A cryptographically secure random number generator that uses the ChaCha
1212
algorithm.

rand_core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_core)
88
[![API](https://docs.rs/rand_core/badge.svg)](https://docs.rs/rand_core)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
Core traits and error types of the [rand] library, plus tools for implementing
1212
RNGs.

rand_hc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_hc)
88
[![API](https://docs.rs/rand_hc/badge.svg)](https://docs.rs/rand_hc)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
A cryptographically secure random number generator that uses the HC-128
1212
algorithm.

rand_isaac/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_isaac)
88
[![API](https://docs.rs/rand_isaac/badge.svg)](https://docs.rs/rand_isaac)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
Implements the ISAAC and ISAAC-64 random number generators.
1212

rand_jitter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_jitter)
77
[![API](https://docs.rs/rand_os/badge.svg)](https://docs.rs/rand_jitter)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
Non-physical true random number generator based on timing jitter.
1111

rand_os/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_os)
88
[![API](https://docs.rs/rand_os/badge.svg)](https://docs.rs/rand_os)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
A random number generator that retrieves randomness straight from the
1212
operating system.

rand_pcg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_pcg)
88
[![API](https://docs.rs/rand_pcg/badge.svg)](https://docs.rs/rand_pcg)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
Implements a selection of PCG random number generators.
1212

rand_xorshift/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_xorshift)
88
[![API](https://docs.rs/rand_xorshift/badge.svg)](https://docs.rs/rand_xorshift)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
Implements the Xorshift random number generator.
1212

rand_xoshiro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
77
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_xoshiro)
88
[![API](https://docs.rs/rand_xoshiro/badge.svg)](https://docs.rs/rand_xoshiro)
9-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
9+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.32+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
1010

1111
Rust implementation of the [xoshiro, xoroshiro and splitmix64](http://xoshiro.di.unimi.it) random number generators.
1212

utils/ci/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ex
44

55
main() {
6-
cross test --target $TARGET --lib --no-default-features
6+
cross test --target $TARGET --tests --no-default-features
77
# TODO: add simd_support feature:
88
cross test --target $TARGET --features=serde1,log
99
cross test --target $TARGET --examples

0 commit comments

Comments
 (0)