-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rand_jitter v0.4, platform_ns_time feature, MSRV=1.51, rustfmt #47
Conversation
Rebased; no longer uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I only had a minor suggestion. 🙂
@@ -9,6 +9,7 @@ documentation = "https://docs.rs/rand_jitter" | |||
description = "Random number generator based on timing jitter" | |||
keywords = ["random", "rng", "os"] | |||
edition = "2018" | |||
rust-version = "1.51" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to add this to the other Cargo.toml
files as well. I'm not sure whether Cargo shipped with Rust 1.36 supports this, but for the other crates it should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That can happen when these get updated... they will need an MSRV update for the next rand_core
anyway.
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/[email protected] # older versions may work (untested) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 1.36 should work for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd have to pin older versions of dependencies (see failure). Doesn't seem worth it.
Fixes #16.
Hacky since it requires a nightly feature. I did try RPIT (return-position impl trait) but rustc still wants a type specification in the test.RPIT does work; Rust was complaining about the (unused) type parameterF
on the impl block.Fixes #46: I will release after this is merged.
Apply rustfmt and Clippy to
rand_jitter
.Bump MSRV to 1.51 for
rand_jitter
and use this version for testing all repo crates. I expect we'll see new versions ofrand_core
and RNGs with a newer MSRV anyway soon(ish) since the Rand repo is already requiring Rust 1.60.