Skip to content

Update dependencies and fix rand API compatibility#100

Merged
swlynch99 merged 1 commit intomainfrom
claude/list-outdated-deps-G3FvF
Mar 16, 2026
Merged

Update dependencies and fix rand API compatibility#100
swlynch99 merged 1 commit intomainfrom
claude/list-outdated-deps-G3FvF

Conversation

@swlynch99
Copy link
Copy Markdown
Contributor

Summary

This PR updates dependencies across the workspace to their latest versions and fixes compatibility issues with the updated rand crate API.

Key Changes

  • Dependency Updates: Updated 40+ dependencies to their latest versions, including:

    • tokio 1.39.1 → 1.50.0
    • serde 1.0.204 → 1.0.228
    • sqlx 0.8.0/0.8.5 → 0.8.6
    • chrono 0.4.38 → 0.4.44
    • clap 4.0/4.5.11 → 4.6.0
    • And many others across all crates
  • Rand API Compatibility: Fixed breaking changes in the rand crate (0.9.0 → 0.10.0):

    • Replaced RngCore trait with RngExt trait
    • Updated fill_bytes() calls to use fill() method
    • Replaced next_u64() with random::<u64>() for generating random values
    • Updated imports in dst.rs and entropy.rs to use the new RngExt trait

Implementation Details

The rand API changes required updates in three locations:

  1. crates/durable-runtime/src/plugin/wasi/random.rs - WASI random number generation
  2. crates/durable-runtime/src/dst.rs - Distributed state tracking
  3. crates/durable-runtime/src/entropy.rs - System entropy provider

All changes maintain the same functionality while adapting to the new rand API surface.

https://claude.ai/code/session_0159aHgDzxjH1bzg6W27Ket6

Major version bumps:
- rand: 0.9 → 0.10 (RngCore → RngExt, fill_bytes → fill, next_u64 → random)
- reqwest: 0.12 → 0.13
- getrandom: 0.3 → 0.4
- console-subscriber: 0.4 → 0.5
- ctor: 0.4 → 0.6
- cargo_metadata: 0.19 → 0.23
- toml: 0.8 → 1.0

Also updates all compatible (semver) dependencies to latest versions.

https://claude.ai/code/session_0159aHgDzxjH1bzg6W27Ket6
@swlynch99 swlynch99 force-pushed the claude/list-outdated-deps-G3FvF branch from 596f7c4 to 28204dd Compare March 16, 2026 19:57
@swlynch99 swlynch99 merged commit 341cc16 into main Mar 16, 2026
7 checks passed
@swlynch99 swlynch99 deleted the claude/list-outdated-deps-G3FvF branch March 16, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants