Skip to content

Commit 1e843d6

Browse files
committed
Merge #24 and #26
2 parents dfa8a99 + a903032 commit 1e843d6

File tree

6 files changed

+536
-721
lines changed

6 files changed

+536
-721
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Main tests
1+
name: Tests
22

33
on:
44
push:
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
toolchain: nightly
4646
- name: rand_core
47-
run: cargo doc --all-features --no-deps
47+
run: cargo doc --no-deps
4848

4949
test:
5050
runs-on: ${{ matrix.os }}
@@ -92,12 +92,9 @@ jobs:
9292
- run: ${{ matrix.deps }}
9393
- name: Maybe minimal versions
9494
if: ${{ matrix.variant == 'minimal_versions' }}
95-
run: |
96-
cargo generate-lockfile -Z minimal-versions
95+
run: cargo generate-lockfile -Z minimal-versions
9796
- name: Test rand_core
98-
run: |
99-
cargo test --target ${{ matrix.target }} --no-default-features
100-
cargo test --target ${{ matrix.target }} --features serde
97+
run: cargo test --target ${{ matrix.target }}
10198

10299
test-cross:
103100
runs-on: ${{ matrix.os }}
@@ -124,9 +121,7 @@ jobs:
124121
- name: Install cross
125122
run: cargo install cross || true
126123
- name: Test
127-
run: |
128-
# all stable features:
129-
cross test --no-fail-fast --target ${{ matrix.target }}
124+
run: cross test --no-fail-fast --target ${{ matrix.target }}
130125

131126
test-miri:
132127
runs-on: ubuntu-latest
@@ -138,10 +133,7 @@ jobs:
138133
rustup override set nightly
139134
cargo miri setup
140135
- name: Test rand
141-
run: |
142-
cargo miri test
143-
cargo miri test --features=serde
144-
cargo miri test --no-default-features
136+
run: cargo miri test
145137

146138
test-no-std:
147139
runs-on: ubuntu-latest
@@ -152,7 +144,7 @@ jobs:
152144
with:
153145
target: thumbv6m-none-eabi
154146
- name: Build top-level only
155-
run: cargo build --target=thumbv6m-none-eabi --no-default-features
147+
run: cargo build --target=thumbv6m-none-eabi
156148

157149
test-ios:
158150
runs-on: macos-latest

Cargo.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,3 @@ categories = ["algorithms", "no-std"]
1515
edition = "2024"
1616
rust-version = "1.85"
1717
exclude = ["/.github"]
18-
19-
[package.metadata.docs.rs]
20-
# To build locally:
21-
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
22-
all-features = true
23-
rustdoc-args = ["--generate-link-to-definition"]
24-
25-
[package.metadata.playground]
26-
all-features = true
27-
28-
[features]
29-
serde = ["dep:serde"] # enables serde for BlockRng wrapper
30-
31-
[dependencies]
32-
serde = { version = "1.0.103", features = ["derive"], optional = true }

0 commit comments

Comments
 (0)