Unverified Commit 420b72b6 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Update Rust dependencies for turbo-persistence and turbo-tasks-backend (#90774)

### What?

Updates outdated Rust dependencies used by `turbo-persistence` and
`turbo-tasks-backend` crates.

### Why?

Keep dependencies current to benefit from bug fixes, performance
improvements, and security patches.

### How?

Each dependency was updated in a separate commit. All crates were
verified to compile and tests pass.

**Direct dependency updates:**
- `lzzzz` 1.1.0 → 2.0.0 (moved to workspace dependency, used by both
crates)
- `arc-swap` 1.7.1 → 1.8.2 (turbo-tasks-backend)

**Workspace dependency updates:**
- `bitfield` 0.18 → 0.19
- `either` 1.9 → 1.15
- `indexmap` 2.7 → 2.13
- `once_cell` 1.17 → 1.21
- `rand` 0.9 → 0.10 (required API migration: `Rng`/`RngCore` → `RngExt`)
- `ringmap` 0.1 → 0.2

**Skipped:**
- `hashbrown` 0.14 → 0.16: The `raw` module was removed in 0.15 and
replaced with `HashTable` API. The codebase uses `RawTable`, `Bucket`,
`InsertSlot` extensively, requiring a non-trivial migration.
parent c3165ca5
This diff is collapsed.
......@@ -371,7 +371,7 @@ allsorts = { version = "0.14.0", default-features = false, features = [
anyhow = "1.0.100"
async-trait = "0.1.64"
bincode = { version = "2.0.1", features = ["serde"] }
bitfield = "0.18.0"
bitfield = "0.19.4"
byteorder = "1.5.0"
bytes = "1.1.0"
bytes-str = "0.2.7"
......@@ -386,7 +386,7 @@ dashmap = "6.1.0"
data-encoding = "2.3.3"
dhat = { version = "0.3.2" }
dunce = "1.0.3"
either = "1.9.0"
either = "1.15.0"
erased-serde = "0.4.5"
flate2 = "1.0.28"
futures = "0.3.31"
......@@ -394,7 +394,7 @@ futures-retry = "0.6.0"
futures-util = "0.3.31"
hashbrown = "0.14.5"
image = { version = "0.25.8", default-features = false }
indexmap = "2.7.1"
indexmap = "2.13.0"
indoc = "2.0.0"
inventory = "0.3.21"
itertools = "0.10.5"
......@@ -407,6 +407,7 @@ lightningcss = { version = "1.0.0-alpha.70", features = [
lightningcss-napi = { version = "0.4.6", default-features = false, features = [
"visitor",
] }
lzzzz = "2.0.0"
markdown = "1.0.0-alpha.18"
mime = "0.3.16"
napi = { version = "2", default-features = false, features = [
......@@ -423,7 +424,7 @@ napi-derive = "2"
napi-build = "2"
nohash-hasher = "0.2.0"
notify = "8.1.0"
once_cell = "1.17.1"
once_cell = "1.21.3"
owo-colors = "4.2.2"
parcel_selectors = "0.28.2"
parking_lot = "0.12.1"
......@@ -435,12 +436,12 @@ proc-macro2 = "1.0.79"
qstring = "0.7.2"
quick_cache = { version = "0.6.14" }
quote = "1.0.23"
rand = "0.9.0"
rand = "0.10.0"
rayon = "1.10.0"
regex = "1.10.6"
regress = "0.10.4"
reqwest = { version = "0.13.1", default-features = false }
ringmap = "0.1.3"
ringmap = "0.2.3"
roaring = "0.10.10"
rstest = "0.16.0"
rustc-hash = "2.1.1"
......
......@@ -15,7 +15,7 @@ futures-util = "0.3.30"
next-api = { workspace = true }
next-core = { workspace = true }
num_cpus = "1.16.0"
rand = { workspace = true, features = ["small_rng"] }
rand = { workspace = true }
swc_core = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["full"] }
......
......@@ -40,7 +40,7 @@ use next_core::{
},
};
use once_cell::sync::Lazy;
use rand::Rng;
use rand::RngExt;
use serde::Serialize;
use tokio::{io::AsyncWriteExt, runtime::Handle, time::Instant};
use tracing::Instrument;
......
......@@ -20,7 +20,7 @@ byteorder = { workspace = true }
dashmap = { workspace = true}
either = { workspace = true }
jiff = "0.2.10"
lzzzz = "1.1.0"
lzzzz = { workspace = true }
memmap2 = "0.9.5"
nohash-hasher = { workspace = true }
parking_lot = { workspace = true }
......@@ -36,7 +36,7 @@ twox-hash = { workspace = true }
[dev-dependencies]
criterion = { workspace = true }
rand = { workspace = true, features = ["small_rng"] }
rand = { workspace = true }
rayon = { workspace = true }
tempfile = { workspace = true }
turbo-tasks-malloc = { workspace = true }
......
......@@ -7,7 +7,7 @@ use criterion::{
};
use parking_lot::Mutex;
use quick_cache::sync::GuardResult;
use rand::{Rng, SeedableRng, rngs::SmallRng, seq::SliceRandom};
use rand::{RngExt, SeedableRng, rngs::SmallRng, seq::SliceRandom};
use tempfile::TempDir;
use turbo_persistence::{
ArcBytes, BlockCache, CompactConfig, Entry, EntryValue, MetaEntryFlags, SerialScheduler,
......
......@@ -397,7 +397,7 @@ mod tests {
mem::{replace, swap},
};
use rand::{Rng, SeedableRng, seq::SliceRandom};
use rand::{RngExt, SeedableRng, seq::SliceRandom};
use super::*;
......
......@@ -1331,7 +1331,7 @@ fn batch_get_after_restore() -> Result<()> {
/// Reproduces a CI benchmark failure with key_4/value_512/entries_1.98Mi/compacted.
#[test]
fn many_small_values_compaction() -> Result<()> {
use rand::{Rng, SeedableRng, rngs::SmallRng};
use rand::{RngExt, SeedableRng, rngs::SmallRng};
use crate::parallel_scheduler::SerialScheduler;
......@@ -1372,7 +1372,7 @@ fn many_small_values_compaction() -> Result<()> {
/// Worst case for small value blocks: fewest entries per block.
#[test]
fn many_max_small_values_compaction() -> Result<()> {
use rand::{Rng, SeedableRng, rngs::SmallRng};
use rand::{RngExt, SeedableRng, rngs::SmallRng};
use crate::{constants::MAX_SMALL_VALUE_SIZE, parallel_scheduler::SerialScheduler};
......@@ -1412,7 +1412,7 @@ fn many_max_small_values_compaction() -> Result<()> {
/// Each medium value gets its own dedicated block, so this is the worst case for block count.
#[test]
fn many_medium_values_compaction() -> Result<()> {
use rand::{Rng, SeedableRng, rngs::SmallRng};
use rand::{RngExt, SeedableRng, rngs::SmallRng};
use crate::{constants::MAX_SMALL_VALUE_SIZE, parallel_scheduler::SerialScheduler};
......
......@@ -35,7 +35,7 @@ lmdb = ["dep:lmdb-rkv"]
[dependencies]
anyhow = { workspace = true }
bincode = { workspace = true }
arc-swap = { version = "1.7.1" }
arc-swap = { version = "1.8.2" }
auto-hash-map = { workspace = true }
bitfield = { workspace = true }
byteorder = { workspace = true }
......@@ -44,7 +44,7 @@ either = { workspace = true }
hashbrown = { workspace = true, features = ["raw"] }
indexmap = { workspace = true }
lmdb-rkv = { version = "0.14.0", optional = true }
lzzzz = { version = "1.1.0", optional = true }
lzzzz = { workspace = true, optional = true }
once_cell = { workspace = true }
parking_lot = { workspace = true }
rand = { workspace = true }
......
......@@ -3,7 +3,7 @@
#![allow(clippy::needless_return)] // tokio macro-generated code doesn't respect this
use anyhow::{Result, bail};
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};
use turbo_tasks::{ResolvedVc, State, Vc};
use turbo_tasks_testing::{Registration, register, run_once};
......
......@@ -3017,7 +3017,7 @@ mod tests {
io::Write,
};
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};
use turbo_rcstr::{RcStr, rcstr};
use turbo_tasks::{OperationVc, ResolvedVc, Vc, apply_effects};
use turbo_tasks_backend::{BackendOptions, TurboTasksBackend, noop_backing_storage};
......
......@@ -10,7 +10,7 @@ use std::{
};
use clap::{Args, ValueEnum};
use rand::{Rng, RngCore, SeedableRng};
use rand::{Rng, RngExt, SeedableRng};
use rustc_hash::FxHashSet;
use tokio::time::sleep;
use turbo_rcstr::{RcStr, rcstr};
......
......@@ -6,7 +6,7 @@ use std::{
const PROGRESS_INTERVAL: Duration = Duration::from_secs(1);
use clap::Args;
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};
use turbo_rcstr::{RcStr, rcstr};
use turbo_tasks::{ResolvedVc, TryJoinIterExt, Vc, apply_effects};
use turbo_tasks_backend::{BackendOptions, TurboTasksBackend, noop_backing_storage};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment