Skip to content

Commit 5309f25

Browse files
authored
0.8.6 (#1772): update for recent nightly rustc and backport #1764
2 parents 937320c + 1126d03 commit 5309f25

48 files changed

Lines changed: 363 additions & 664 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to crates.io and create GitHub release
2+
on:
3+
push:
4+
tags: ['[0-9].[0-9].*', '[0-9].[1-9][0-9].*']
5+
jobs:
6+
# Source: https://crates.io/docs/trusted-publishing
7+
publish:
8+
runs-on: ubuntu-latest
9+
environment: release
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: rust-lang/crates-io-auth-action@v1
15+
id: auth
16+
- run: cargo publish
17+
env:
18+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

.github/workflows/test.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
cargo test --target ${{ matrix.target }} --benches --features=nightly
7979
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --benches
8080
cargo test --target ${{ matrix.target }} --lib --tests --no-default-features --features min_const_gen
81+
- name: Use Cargo.lock.msrv (1.36)
82+
if: ${{ matrix.toolchain == '1.36.0' }}
83+
run: |
84+
cp Cargo.lock.msrv Cargo.lock
8185
- name: Test rand
8286
run: |
8387
cargo test --target ${{ matrix.target }} --lib --tests --no-default-features
@@ -87,12 +91,12 @@ jobs:
8791
- name: Test rand (all stable features, non-MSRV)
8892
if: ${{ matrix.toolchain != '1.36.0' }}
8993
run: |
90-
cargo test --target ${{ matrix.target }} --features=serde1,log,small_rng,min_const_gen
94+
cargo test --target ${{ matrix.target }} --features=serde1,small_rng,min_const_gen
9195
- name: Test rand (all stable features, MSRV)
9296
if: ${{ matrix.toolchain == '1.36.0' }}
9397
run: |
9498
# const generics are not stable on 1.36.0
95-
cargo test --target ${{ matrix.target }} --features=serde1,log,small_rng
99+
cargo test --target ${{ matrix.target }} --features=serde1,small_rng
96100
- name: Test rand_core
97101
run: |
98102
cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
@@ -115,20 +119,18 @@ jobs:
115119
matrix:
116120
include:
117121
- os: ubuntu-latest
118-
target: mips-unknown-linux-gnu
122+
target: powerpc-unknown-linux-gnu
119123
toolchain: stable
120124

121125
steps:
122-
- uses: actions/checkout@v2
126+
- uses: actions/checkout@v6
123127
- name: Install toolchain
124-
uses: actions-rs/toolchain@v1
128+
uses: dtolnay/rust-toolchain@master
125129
with:
126-
profile: minimal
127130
target: ${{ matrix.target }}
128131
toolchain: ${{ matrix.toolchain }}
129-
override: true
130132
- name: Cache cargo plugins
131-
uses: actions/cache@v1
133+
uses: actions/cache@v5
132134
with:
133135
path: ~/.cargo/bin/
134136
key: ${{ runner.os }}-cargo-plugins
@@ -137,7 +139,7 @@ jobs:
137139
- name: Test
138140
run: |
139141
# all stable features:
140-
cross test --no-fail-fast --target ${{ matrix.target }} --features=serde1,log,small_rng
142+
cross test --no-fail-fast --target ${{ matrix.target }} --features=serde1,small_rng
141143
cross test --no-fail-fast --target ${{ matrix.target }} --examples
142144
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
143145
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde1
@@ -156,7 +158,7 @@ jobs:
156158
- name: Test rand
157159
run: |
158160
cargo miri test --no-default-features --lib --tests
159-
cargo miri test --features=log,small_rng
161+
cargo miri test --features=small_rng
160162
cargo miri test --manifest-path rand_core/Cargo.toml
161163
cargo miri test --manifest-path rand_core/Cargo.toml --features=serde1
162164
cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
88

99
You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.html) useful.
1010

11+
## [0.8.6] - 2026-04-14
12+
This release back-ports a fix from v0.10. See also [#1763].
13+
14+
### Changes
15+
- Deprecate feature `log` ([#1772])
16+
17+
[#1763]: https://github.com/rust-random/rand/pull/1763
18+
[#1772]: https://github.com/rust-random/rand/pull/1772
19+
20+
- Drop the experimental `simd_support` feature.
21+
1122
## [0.8.5] - 2021-08-20
1223
### Fixes
1324
- Fix build on non-32/64-bit architectures (#1144)

Cargo.lock.msrv

Lines changed: 233 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)