Skip to content
Open
22 changes: 7 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main tests
name: Tests

on:
push:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
with:
toolchain: nightly
- name: rand_core
run: cargo doc --all-features --no-deps
run: cargo doc --no-deps

test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -92,12 +92,9 @@ jobs:
- run: ${{ matrix.deps }}
- name: Maybe minimal versions
if: ${{ matrix.variant == 'minimal_versions' }}
run: |
cargo generate-lockfile -Z minimal-versions
run: cargo generate-lockfile -Z minimal-versions
- name: Test rand_core
run: |
cargo test --target ${{ matrix.target }} --no-default-features
cargo test --target ${{ matrix.target }} --features serde
run: cargo test --target ${{ matrix.target }}

test-cross:
runs-on: ${{ matrix.os }}
Expand All @@ -124,9 +121,7 @@ jobs:
- name: Install cross
run: cargo install cross || true
- name: Test
run: |
# all stable features:
cross test --no-fail-fast --target ${{ matrix.target }}
run: cross test --no-fail-fast --target ${{ matrix.target }}

test-miri:
runs-on: ubuntu-latest
Expand All @@ -138,10 +133,7 @@ jobs:
rustup override set nightly
cargo miri setup
- name: Test rand
run: |
cargo miri test
cargo miri test --features=serde
cargo miri test --no-default-features
run: cargo miri test

test-no-std:
runs-on: ubuntu-latest
Expand All @@ -152,7 +144,7 @@ jobs:
with:
target: thumbv6m-none-eabi
- name: Build top-level only
run: cargo build --target=thumbv6m-none-eabi --no-default-features
run: cargo build --target=thumbv6m-none-eabi

test-ios:
runs-on: macos-latest
Expand Down
15 changes: 0 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,3 @@ categories = ["algorithms", "no-std"]
edition = "2024"
rust-version = "1.85"
exclude = ["/.github"]

[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need --generate-link-to-definition?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need or use? I guess it remains an option because it's not truly necessary.

See rust-random/rand#1327.


[package.metadata.playground]
all-features = true

[features]
serde = ["dep:serde"] # enables serde for BlockRng wrapper

[dependencies]
serde = { version = "1.0.103", features = ["derive"], optional = true }
Loading
Loading