This is an automated email from the ASF dual-hosted git repository.
mbutrovich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git
The following commit(s) were added to refs/heads/main by this push:
new aa067e930 chore(deps): bump rand from 0.9.2 to 0.10.0 in /native
(#3465)
aa067e930 is described below
commit aa067e930a4ff0c15883236376211df17bfcde4b
Author: Manu Zhang <[email protected]>
AuthorDate: Tue Feb 10 20:53:07 2026 +0800
chore(deps): bump rand from 0.9.2 to 0.10.0 in /native (#3465)
---
native/Cargo.lock | 198 ++++++++++++++++++++-
native/Cargo.toml | 2 +-
native/core/benches/bit_util.rs | 2 +-
native/core/benches/common.rs | 2 +-
native/core/benches/parquet_read.rs | 2 +-
native/core/src/common/bit.rs | 2 +-
.../core/src/parquet/util/test_common/rand_gen.rs | 2 +-
7 files changed, 199 insertions(+), 11 deletions(-)
diff --git a/native/Cargo.lock b/native/Cargo.lock
index 70fab689b..c1224c2a0 100644
--- a/native/Cargo.lock
+++ b/native/Cargo.lock
@@ -1060,7 +1060,7 @@ dependencies = [
"cc",
"cfg-if",
"constant_time_eq",
- "cpufeatures",
+ "cpufeatures 0.2.17",
]
[[package]]
@@ -1283,6 +1283,17 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
+[[package]]
+name = "chacha20"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.3.0",
+ "rand_core 0.10.0",
+]
+
[[package]]
name = "chrono"
version = "0.4.43"
@@ -1474,6 +1485,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "cpufeatures"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "crc32c"
version = "0.6.8"
@@ -1859,7 +1879,7 @@ dependencies = [
"pprof",
"procfs",
"prost",
- "rand 0.9.2",
+ "rand 0.10.0",
"regex",
"reqwest",
"serde_json",
@@ -1925,7 +1945,7 @@ dependencies = [
"futures",
"hex",
"num",
- "rand 0.9.2",
+ "rand 0.10.0",
"regex",
"serde_json",
"thiserror 2.0.18",
@@ -2944,6 +2964,20 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "getrandom"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi",
+ "rand_core 0.10.0",
+ "wasip2",
+ "wasip3",
+]
+
[[package]]
name = "gimli"
version = "0.32.3"
@@ -3384,6 +3418,12 @@ dependencies = [
"zerovec",
]
+[[package]]
+name = "id-arena"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
+
[[package]]
name = "ident_case"
version = "1.0.1"
@@ -3624,6 +3664,12 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
+[[package]]
+name = "leb128fmt"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
+
[[package]]
name = "lexical-core"
version = "1.0.6"
@@ -4752,6 +4798,17 @@ dependencies = [
"rand_core 0.9.5",
]
+[[package]]
+name = "rand"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8"
+dependencies = [
+ "chacha20",
+ "getrandom 0.4.1",
+ "rand_core 0.10.0",
+]
+
[[package]]
name = "rand_chacha"
version = "0.3.1"
@@ -4790,6 +4847,12 @@ dependencies = [
"getrandom 0.3.4",
]
+[[package]]
+name = "rand_core"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba"
+
[[package]]
name = "rayon"
version = "1.11.0"
@@ -5427,7 +5490,7 @@ source =
"registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
"cfg-if",
- "cpufeatures",
+ "cpufeatures 0.2.17",
"digest",
]
@@ -5438,7 +5501,7 @@ source =
"registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [
"cfg-if",
- "cpufeatures",
+ "cpufeatures 0.2.17",
"digest",
]
@@ -6176,6 +6239,15 @@ dependencies = [
"wit-bindgen",
]
+[[package]]
+name = "wasip3"
+version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
+dependencies = [
+ "wit-bindgen",
+]
+
[[package]]
name = "wasm-bindgen"
version = "0.2.108"
@@ -6235,6 +6307,28 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "wasm-encoder"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
+dependencies = [
+ "leb128fmt",
+ "wasmparser",
+]
+
+[[package]]
+name = "wasm-metadata"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
+dependencies = [
+ "anyhow",
+ "indexmap 2.13.0",
+ "wasm-encoder",
+ "wasmparser",
+]
+
[[package]]
name = "wasm-streams"
version = "0.4.2"
@@ -6248,6 +6342,18 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "wasmparser"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
+dependencies = [
+ "bitflags 2.10.0",
+ "hashbrown 0.15.5",
+ "indexmap 2.13.0",
+ "semver",
+]
+
[[package]]
name = "web-sys"
version = "0.3.85"
@@ -6624,6 +6730,88 @@ name = "wit-bindgen"
version = "0.51.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
+dependencies = [
+ "wit-bindgen-rust-macro",
+]
+
+[[package]]
+name = "wit-bindgen-core"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
+dependencies = [
+ "anyhow",
+ "heck",
+ "wit-parser",
+]
+
+[[package]]
+name = "wit-bindgen-rust"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
+dependencies = [
+ "anyhow",
+ "heck",
+ "indexmap 2.13.0",
+ "prettyplease",
+ "syn 2.0.114",
+ "wasm-metadata",
+ "wit-bindgen-core",
+ "wit-component",
+]
+
+[[package]]
+name = "wit-bindgen-rust-macro"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
+dependencies = [
+ "anyhow",
+ "prettyplease",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.114",
+ "wit-bindgen-core",
+ "wit-bindgen-rust",
+]
+
+[[package]]
+name = "wit-component"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
+dependencies = [
+ "anyhow",
+ "bitflags 2.10.0",
+ "indexmap 2.13.0",
+ "log",
+ "serde",
+ "serde_derive",
+ "serde_json",
+ "wasm-encoder",
+ "wasm-metadata",
+ "wasmparser",
+ "wit-parser",
+]
+
+[[package]]
+name = "wit-parser"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
+dependencies = [
+ "anyhow",
+ "id-arena",
+ "indexmap 2.13.0",
+ "log",
+ "semver",
+ "serde",
+ "serde_derive",
+ "serde_json",
+ "unicode-xid",
+ "wasmparser",
+]
[[package]]
name = "writeable"
diff --git a/native/Cargo.toml b/native/Cargo.toml
index afed5fa43..03e7f6e91 100644
--- a/native/Cargo.toml
+++ b/native/Cargo.toml
@@ -47,7 +47,7 @@ chrono = { version = "0.4", default-features = false,
features = ["clock"] }
chrono-tz = { version = "0.10" }
futures = "0.3.28"
num = "0.4"
-rand = "0.9"
+rand = "0.10"
regex = "1.12.3"
thiserror = "2"
object_store = { version = "0.12.3", features = ["gcp", "azure", "aws",
"http"] }
diff --git a/native/core/benches/bit_util.rs b/native/core/benches/bit_util.rs
index 8a250e27c..92ae497a5 100644
--- a/native/core/benches/bit_util.rs
+++ b/native/core/benches/bit_util.rs
@@ -17,7 +17,7 @@
use std::{mem::size_of, time::Duration};
-use rand::{rng, Rng};
+use rand::{rng, RngExt};
use arrow::buffer::Buffer;
use comet::common::bit::{
diff --git a/native/core/benches/common.rs b/native/core/benches/common.rs
index 06f90cc5c..6eb031964 100644
--- a/native/core/benches/common.rs
+++ b/native/core/benches/common.rs
@@ -23,7 +23,7 @@ use arrow::{
use rand::{
distr::{Distribution, StandardUniform},
rngs::StdRng,
- Rng, SeedableRng,
+ RngExt, SeedableRng,
};
use std::sync::Arc;
diff --git a/native/core/benches/parquet_read.rs
b/native/core/benches/parquet_read.rs
index 659a895e7..a56c748e0 100644
--- a/native/core/benches/parquet_read.rs
+++ b/native/core/benches/parquet_read.rs
@@ -36,7 +36,7 @@ use comet::parquet::util::test_common::page_util::{
};
use perf::FlamegraphProfiler;
-use rand::{prelude::StdRng, Rng, SeedableRng};
+use rand::{prelude::StdRng, RngExt, SeedableRng};
use zstd::zstd_safe::WriteBuf;
fn bench(c: &mut Criterion) {
diff --git a/native/core/src/common/bit.rs b/native/core/src/common/bit.rs
index 15055e9d6..459c38a52 100644
--- a/native/core/src/common/bit.rs
+++ b/native/core/src/common/bit.rs
@@ -997,7 +997,7 @@ mod tests {
use rand::{
distr::{Distribution, StandardUniform},
- Rng,
+ RngExt,
};
use std::fmt::Debug;
diff --git a/native/core/src/parquet/util/test_common/rand_gen.rs
b/native/core/src/parquet/util/test_common/rand_gen.rs
index 0a1ad0774..0116b2c8c 100644
--- a/native/core/src/parquet/util/test_common/rand_gen.rs
+++ b/native/core/src/parquet/util/test_common/rand_gen.rs
@@ -17,7 +17,7 @@
use rand::{
distr::{uniform::SampleUniform, Distribution, StandardUniform},
- rng, Rng,
+ rng, RngExt,
};
pub fn random_bytes(n: usize) -> Vec<u8> {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]