Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
30c92d9
Replace block module with helper functions
newpavlov Nov 10, 2025
4a6425b
fix doc
newpavlov Nov 10, 2025
73d7ab3
Fix CI
newpavlov Nov 10, 2025
699271e
Main tests -> Tests
newpavlov Nov 10, 2025
1276031
tweak examples
newpavlov Nov 10, 2025
0dc2440
tweak `read_u*_into` functions
newpavlov Nov 10, 2025
44a48d4
tweak asserts
newpavlov Nov 10, 2025
64e0ee0
Merge branch 'master' into block_buffer
newpavlov Nov 10, 2025
869ae96
Remove `next_u*_via_fill` methods
newpavlov Nov 12, 2025
76959c1
split `fill_bytes_via_next`
newpavlov Nov 12, 2025
4da0ef7
Introduce `Word` trit, add `fill_bytes_via_gen_block`
newpavlov Nov 12, 2025
b486e60
tweak docs
newpavlov Nov 12, 2025
b50f3e3
Add `SeedableRng` impl to utils examples
newpavlov Nov 12, 2025
b020090
Add asserts to `new_buffer`
newpavlov Nov 12, 2025
f2cad62
Fix assert
newpavlov Nov 14, 2025
605f653
Fix assert on 32 bit targets
newpavlov Nov 14, 2025
2687495
Improve codegen for `fill_bytes_via_gen_block`
newpavlov Nov 14, 2025
30eacd9
Add inline attributes
newpavlov Nov 14, 2025
bd9e3c2
Fix Clippy lints
newpavlov Nov 14, 2025
fc7a021
Fix loop in `read_bytes`
newpavlov Nov 14, 2025
1f18460
rename `utils` to `le`
newpavlov Nov 14, 2025
0eb5d86
fmt
newpavlov Nov 14, 2025
f5fcfcb
add debug asserts
newpavlov Nov 14, 2025
afcdb6f
Hide some lines from doc examples
newpavlov Nov 14, 2025
fd8b982
Add comment for `Self(u32::from_le_bytes(seed))`
newpavlov Nov 14, 2025
4643695
Twak docs
newpavlov Nov 14, 2025
69d992a
Use `fill_bytes_via_gen_block` in examples
newpavlov Nov 14, 2025
ee92dd8
Tweak examples and change `read_words_into`
newpavlov Nov 14, 2025
13cce61
Tweak docs
newpavlov Nov 14, 2025
794aa2c
fix `new_buffer` docs
newpavlov Nov 14, 2025
3a1e199
Add `next_u64_via_gen_block`
newpavlov Nov 14, 2025
9bfbb13
Rename `dest` to `dst`
newpavlov Nov 14, 2025
8432c8d
Remove redundant `W::from_usize(N)`
newpavlov Nov 14, 2025
6671456
Tweak `new_buffer` panic conditions
newpavlov Nov 14, 2025
a78264a
tweak example names
newpavlov Nov 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]

[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