Skip to content

Commit 67fd92e

Browse files
authored
Prepare 0.9.0 release (#1558)
1 parent 592df6d commit 67fd92e

File tree

3 files changed

+27
-39
lines changed

3 files changed

+27
-39
lines changed

distr_test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55
publish = false
66

77
[dev-dependencies]
8-
rand_distr = { path = "../rand_distr", version = "=0.5.0-beta.3", default-features = false, features = ["alloc"] }
9-
rand = { path = "..", version = "=0.9.0-beta.3", features = ["small_rng"] }
8+
rand_distr = { path = "../rand_distr", version = "0.5.0", default-features = false, features = ["alloc"] }
9+
rand = { path = "..", version = "0.9.0", features = ["small_rng"] }
1010
num-traits = "0.2.19"
1111
# Special functions for testing distributions
1212
special = "0.11.0"

rand_distr/CHANGELOG.md

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,32 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.5.0-beta.3] - 2025-01-03
8-
- Bump `rand` version (#1547)
7+
## [0.5.0] - 2025-01-27
8+
9+
### Dependencies and features
10+
- Bump the MSRV to 1.61.0 (#1207, #1246, #1269, #1341, #1416); note that 1.60.0 may work for dependents when using `--ignore-rust-version`
11+
- Update to `rand` v0.9.0 (#1558)
12+
- Rename feature `serde1` to `serde` (#1477)
13+
14+
### API changes
15+
- Make distributions comparable with `PartialEq` (#1218)
16+
- `Dirichlet` now uses `const` generics, which means that its size is required at compile time (#1292)
17+
- The `Dirichlet::new_with_size` constructor was removed (#1292)
18+
- Add `WeightedIndexTree` (#1372, #1444)
19+
- Add `PertBuilder` to allow specification of `mean` or `mode` (#1452)
20+
- Rename `Zeta`'s parameter `a` to `s` (#1466)
21+
- Mark `WeightError`, `PoissonError`, `BinomialError` as `#[non_exhaustive]` (#1480)
22+
- Remove support for usage of `isize` as a `WeightedAliasIndex` weight (#1487)
23+
- Change parameter type of `Zipf::new`: `n` is now floating-point (#1518)
24+
25+
### API changes: renames
926
- Move `Slice` -> `slice::Choose`, `EmptySlice` -> `slice::Empty` (#1548)
1027
- Rename trait `DistString` -> `SampleString` (#1548)
1128
- Rename `DistIter` -> `Iter`, `DistMap` -> `Map` (#1548)
1229
- Move `{Weight, WeightError, WeightedIndex}` -> `weighted::{Weight, Error, WeightedIndex}` (#1548)
1330
- Move `weighted_alias::{AliasableWeight, WeightedAliasIndex}` -> `weighted::{..}` (#1548)
1431
- Move `weighted_tree::WeightedTreeIndex` -> `weighted::WeightedTreeIndex` (#1548)
1532

16-
## [0.5.0-beta.2] - 2024-11-30
17-
- Bump `rand` version
18-
19-
## [0.5.0-beta.1] - 2024-11-27
20-
- Fix docs.rs build (#1539)
21-
22-
## [0.5.0-beta.0] - 2024-11-25
23-
This is a pre-release. To depend on this version, use `rand = "=0.9.0-beta.0"` to prevent automatic updates (which can be expected to include breaking changes).
24-
25-
### Compilation options
26-
- Target `rand` version `0.9.0-beta.0`
27-
- Bump the MSRV to 1.61.0 (#1207, #1246, #1269, #1341, #1416); note that 1.60.0 may work for dependents when using `--ignore-rust-version`
28-
- The `serde1` feature has been renamed `serde` (#1477)
29-
3033
### Testing
3134
- Add Kolmogorov Smirnov tests for distributions (#1494, #1504, #1525, #1530)
3235

@@ -35,31 +38,16 @@ This is a pre-release. To depend on this version, use `rand = "=0.9.0-beta.0"` t
3538
- Fix `Poisson` distribution instantiation so it return an error if lambda is infinite (#1291)
3639
- Fix Dirichlet sample for small alpha values to avoid NaN samples (#1209)
3740
- Fix infinite loop in `Binomial` distribution (#1325)
41+
- Fix `Pert` distribution where `mode` is close to `(min + max) / 2` (#1452)
3842
- Fix panic in Binomial (#1484)
3943
- Limit the maximal acceptable lambda for `Poisson` to solve (#1312) (#1498)
4044
- Fix bug in `Hypergeometric`, this is a Value-breaking change (#1510)
4145

42-
### Additions
43-
- Make distributions comparable with `PartialEq` (#1218)
44-
- Add `WeightedIndexTree` (#1372, #1444)
45-
46-
### Changes
4746
### Other changes
4847
- Remove unused fields from `Gamma`, `NormalInverseGaussian` and `Zipf` distributions (#1184)
4948
This breaks serialization compatibility with older versions.
50-
- `Dirichlet` now uses `const` generics, which means that its size is required at compile time (#1292)
51-
- The `Dirichlet::new_with_size` constructor was removed (#1292)
52-
- Add `PertBuilder`, fix case where mode ≅ mean (#1452)
53-
- Rename `Zeta`'s parameter `a` to `s` (#1466)
54-
- Mark `WeightError`, `PoissonError`, `BinomialError` as `#[non_exhaustive]` (#1480)
55-
- Remove support for usage of `isize` as a `WeightedAliasIndex` weight (#1487)
56-
- Change parameter type of `Zipf::new`: `n` is now floating-point (#1518)
57-
58-
### Optimizations
59-
- Move some of the computations in Binomial from `sample` to `new` (#1484)
60-
61-
### Documentation
6249
- Add plots for `rand_distr` distributions to documentation (#1434)
50+
- Move some of the computations in Binomial from `sample` to `new` (#1484)
6351

6452
## [0.4.3] - 2021-12-30
6553
- Fix `no_std` build (#1208)

rand_distr/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand_distr"
3-
version = "0.5.0-beta.3"
3+
version = "0.5.0"
44
authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -33,15 +33,15 @@ std_math = ["num-traits/std"]
3333
serde = ["dep:serde", "dep:serde_with", "rand/serde"]
3434

3535
[dependencies]
36-
rand = { path = "..", version = "=0.9.0-beta.3", default-features = false }
36+
rand = { path = "..", version = "0.9.0", default-features = false }
3737
num-traits = { version = "0.2", default-features = false, features = ["libm"] }
3838
serde = { version = "1.0.103", features = ["derive"], optional = true }
3939
serde_with = { version = ">= 3.0, <= 3.11", optional = true }
4040

4141
[dev-dependencies]
42-
rand_pcg = { version = "=0.9.0-beta.1", path = "../rand_pcg" }
42+
rand_pcg = { version = "0.9.0", path = "../rand_pcg" }
4343
# For inline examples
44-
rand = { path = "..", version = "=0.9.0-beta.3", features = ["small_rng"] }
44+
rand = { path = "..", version = "0.9.0", features = ["small_rng"] }
4545
# Histogram implementation for testing uniformity
4646
average = { version = "0.15", features = [ "std" ] }
4747
# Special functions for testing distributions

0 commit comments

Comments
 (0)