Skip to content

Commit 8e706cb

Browse files
chore(deps): update rust crate rand_distr to 0.6 (#7046)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rand_distr](https://rust-random.github.io/book) ([source](https://redirect.github.com/rust-random/rand_distr)) | workspace.dependencies | minor | `0.5` → `0.6` | --- ### Release Notes <details> <summary>rust-random/rand_distr (rand_distr)</summary> ### [`v0.6.0`](https://redirect.github.com/rust-random/rand_distr/blob/HEAD/CHANGELOG.md#060--2026-02-10) [Compare Source](https://redirect.github.com/rust-random/rand_distr/compare/0.5.1...0.6.0) - Bump to MSRV 1.85.0 and Edition 2024 in line with `rand` (\[[#&#8203;28](https://redirect.github.com/rust-random/rand_distr/issues/28)]) - Update `rand` to version 0.10.0 (\[[#&#8203;31](https://redirect.github.com/rust-random/rand_distr/issues/31)], \[[#&#8203;48](https://redirect.github.com/rust-random/rand_distr/issues/48)]) ##### Additions - `MultiDistribution` trait to sample more efficiently from multi-dimensional distributions (\[[#&#8203;18](https://redirect.github.com/rust-random/rand_distr/issues/18)]) - Add `WeightedAliasIndex::weights()` to reconstruct the original weights in O(n) (\[[#&#8203;25](https://redirect.github.com/rust-random/rand_distr/issues/25)]) - `ConstMultiDistribution` trait as support for fixed-dimension distributions (\[[#&#8203;29](https://redirect.github.com/rust-random/rand_distr/issues/29)]) ##### Changes - Moved `Dirichlet` into the new `multi` module and implement `MultiDistribution` for it (\[[#&#8203;18](https://redirect.github.com/rust-random/rand_distr/issues/18)]) - `Dirichlet` no longer uses `const` generics, which means that its size is not required at compile time. Essentially a revert of \[[rand#1292](https://redirect.github.com/rand/rand_distr/issues/1292)]. (\[[#&#8203;30](https://redirect.github.com/rust-random/rand_distr/issues/30)]) ##### Fixes - Fix `Geometric::new` for small `p > 0` where `1 - p` rounds to 1 (\[[#&#8203;36](https://redirect.github.com/rust-random/rand_distr/issues/36)]) - Use `direct-minimal-versions` (\[[#&#8203;38](https://redirect.github.com/rust-random/rand_distr/issues/38)]) - Fix panic in `FisherF::new` on almost zero parameters (\[[#&#8203;39](https://redirect.github.com/rust-random/rand_distr/issues/39)]) - Fix panic in `NormalInverseGaussian::new` with very large `alpha`; this is a Value-breaking change (\[[#&#8203;40](https://redirect.github.com/rust-random/rand_distr/issues/40)]) - Fix hang and debug assertion in `Zipf::new` on invalid parameters (\[[#&#8203;41](https://redirect.github.com/rust-random/rand_distr/issues/41)]) - Fix panic in `Binomial::sample` with `n ≥ 2^63`; this is a Value-breaking change (\[[#&#8203;43](https://redirect.github.com/rust-random/rand_distr/issues/43)]) - Error instead of producing `-inf` output for `Exp` when `lambda` is `-0.0` (\[[#&#8203;44](https://redirect.github.com/rust-random/rand_distr/issues/44)]) - Avoid returning NaN from `Gamma::sample`; this is a Value-breaking change and also affects `ChiSquared` and `Dirichlet` (\[[#&#8203;46](https://redirect.github.com/rust-random/rand_distr/issues/46)]) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vortex-data/vortex). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My42Ni40IiwidXBkYXRlZEluVmVyIjoiNDMuNjYuNCIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AiLCJsYWJlbHMiOlsiY2hhbmdlbG9nL2Nob3JlIl19--> --------- Signed-off-by: Robert Kruszewski <github@robertk.io> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Kruszewski <github@robertk.io>
1 parent bf0ec1c commit 8e706cb

38 files changed

Lines changed: 110 additions & 63 deletions

Cargo.lock

Lines changed: 68 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ pyo3-bytes = "0.6"
198198
pyo3-log = "0.13.0"
199199
pyo3-object_store = "0.10.0"
200200
quote = "1.0.41"
201-
rand = "0.9.0"
202-
rand_distr = "0.5"
201+
rand = "0.10.0"
202+
rand_distr = "0.6"
203203
ratatui = { version = "0.30", default-features = false }
204204
regex = "1.11.0"
205205
regex-automata = "0.4"
@@ -299,7 +299,7 @@ vortex-tui = { path = "./vortex-tui" }
299299
[workspace.dependencies.getrandom_v03]
300300
features = ["wasm_js"]
301301
package = "getrandom"
302-
version = "0.3.1"
302+
version = "0.4.0"
303303

304304
[workspace.lints.rust]
305305
let_underscore_drop = "deny"

benchmarks/random-access-bench/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use anyhow::Result;
99
use clap::Parser;
1010
use clap::ValueEnum;
1111
use indicatif::ProgressBar;
12-
use rand::Rng;
12+
use rand::RngExt;
1313
use rand::SeedableRng;
1414
use rand::rngs::StdRng;
1515
use rand_distr::Distribution;

encodings/alp/benches/alp_compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![allow(clippy::unwrap_used)]
55

66
use divan::Bencher;
7-
use rand::Rng;
7+
use rand::RngExt;
88
use rand::SeedableRng as _;
99
use rand::rngs::StdRng;
1010
use vortex_alp::ALPFloat;

encodings/fastlanes/benches/bitpacking_take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(clippy::cast_possible_truncation)]
66

77
use divan::Bencher;
8-
use rand::Rng;
8+
use rand::RngExt;
99
use rand::SeedableRng;
1010
use rand::distr::Uniform;
1111
use rand::prelude::StdRng;

encodings/fastlanes/benches/compute_between.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![expect(clippy::unwrap_used)]
44

55
use num_traits::NumCast;
6-
use rand::Rng;
6+
use rand::RngExt;
77
use rand::rngs::StdRng;
88
use vortex_alp::ALPArray;
99
use vortex_alp::alp_encode;

encodings/fastlanes/src/bitpacking/array/bitpack_compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ fn bytes_per_exception(ptype: PType) -> usize {
380380

381381
#[cfg(feature = "_test-harness")]
382382
pub mod test_harness {
383-
use rand::Rng as _;
383+
use rand::RngExt;
384384
use rand::rngs::StdRng;
385385
use vortex_array::ArrayRef;
386386
use vortex_array::IntoArray;

encodings/fastlanes/src/bitpacking/compute/take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fn take_primitive<T: NativePType + BitPacking, I: IntegerPType>(
147147
#[cfg(test)]
148148
#[allow(clippy::cast_possible_truncation)]
149149
mod test {
150-
use rand::Rng;
150+
use rand::RngExt;
151151
use rand::distr::Uniform;
152152
use rand::rng;
153153
use rstest::rstest;

encodings/fsst/benches/fsst_compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use std::sync::LazyLock;
77

88
use divan::Bencher;
9-
use rand::Rng;
9+
use rand::RngExt;
1010
use rand::SeedableRng;
1111
use rand::rngs::StdRng;
1212
use vortex_array::IntoArray;

encodings/fsst/src/canonical.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub(crate) fn fsst_decode_views(
8888
mod tests {
8989
use std::sync::LazyLock;
9090

91-
use rand::Rng;
91+
use rand::RngExt;
9292
use rand::SeedableRng;
9393
use rand::prelude::StdRng;
9494
use vortex_array::ArrayRef;

0 commit comments

Comments
 (0)