From a4020ade302fdc3ee8fd12ff370dada94312a639 Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 30 Jul 2024 11:19:21 -0700 Subject: [PATCH 1/3] Drop support for rand_core < 0.6 This works around a Cargo issue where unrelated updates can cause the `rand_core` dependency to "snap back" to older versions. Fixes #9. --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf4e774..e3201d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +* Update `rand_core` dependency to exactly `0.6`, dropping support for `rand_core <= 0.5`. This + works around Cargo issues where unrelated updates can cause the `rand_core` dependency to "snap + back" to older versions. + ## [0.2.3] - 2022-02-24 Fix undefined behaviour caused by narrowing provenance of slice pointer to a single element then reading multiple elements (#8). diff --git a/Cargo.toml b/Cargo.toml index 4b871d4..a20b32b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,4 +14,4 @@ keywords = ["random", "rng", "seeder"] categories = ["algorithms", "no-std"] [dependencies] -rand_core = { version = ">= 0.1, <= 0.6", default-features = false } +rand_core = { version = "0.6", default-features = false } From 502a9792d7be81e0b1c265f40d36d1e641507c98 Mon Sep 17 00:00:00 2001 From: Rain Date: Wed, 31 Jul 2024 12:37:22 -0700 Subject: [PATCH 2/3] Bump version and update changelog --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3201d6..e16cdd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [0.3.0] - 2024-07-31 * Update `rand_core` dependency to exactly `0.6`, dropping support for `rand_core <= 0.5`. This works around Cargo issues where unrelated updates can cause the `rand_core` dependency to "snap diff --git a/Cargo.toml b/Cargo.toml index a20b32b..3349d2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rand_seeder" -version = "0.2.3" # NB: When modifying, also modify html_root_url in lib.rs +version = "0.3.0" # NB: When modifying, also modify html_root_url in lib.rs authors = ["The Rand Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" From bf29ca9e8b91064e05f4f7d9dbe249225646234d Mon Sep 17 00:00:00 2001 From: Rain Date: Wed, 31 Jul 2024 12:40:06 -0700 Subject: [PATCH 3/3] Also update html_root_url --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 406118b..628d564 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,7 +35,7 @@ #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/rand_seeder/0.2.3" + html_root_url = "https://docs.rs/rand_seeder/0.3.0" )] #![deny(missing_docs)] #![deny(missing_debug_implementations)]