Skip to content

chore(deps): bump rand, rand_distr, tiktoken-rs, tokio-tungstenite#34

Merged
chaliy merged 2 commits into
mainfrom
claude/maint-deps-update-t0rOv
May 17, 2026
Merged

chore(deps): bump rand, rand_distr, tiktoken-rs, tokio-tungstenite#34
chaliy merged 2 commits into
mainfrom
claude/maint-deps-update-t0rOv

Conversation

@chaliy
Copy link
Copy Markdown
Owner

@chaliy chaliy commented May 17, 2026

What

Major-version upgrades for direct dependencies as part of routine maintenance (R1.2).

  • rand 0.9 → 0.10
  • rand_distr 0.5 → 0.6
  • tiktoken-rs 0.9 → 0.11
  • tokio-tungstenite 0.28 → 0.29 (dev-dependency)

Why

Per specs/maintenance.md R1.2, major upgrades should be applied when breaking changes are straightforward to adapt. All updates above had minor API tweaks that were trivial to address.

How

  • rand 0.10 moved random, random_range, and random_bool from the Rng trait into a new RngExt trait. Adjusted imports in errors.rs, generator.rs, and latency.rs.
  • tiktoken-rs 0.11 changed CoreBPE::decode to accept &[Rank] instead of Vec<Rank>. Updated the call in tokens.rs.
  • rand_distr 0.6 and tokio-tungstenite 0.29 were source-compatible.

Risk

  • Low. Public crate API is unchanged. All 164 tests pass, clippy clean, smoke test against the built binary succeeds.

Checklist

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test (164 passed)
  • Smoke test: /health, /openai/v1/chat/completions, /llmsim/stats

chaliy added 2 commits May 17, 2026 05:12
Major version updates for direct dependencies:
- rand 0.9 -> 0.10 (random/random_range/random_bool moved to RngExt trait)
- rand_distr 0.5 -> 0.6
- tiktoken-rs 0.9 -> 0.11 (CoreBPE::decode now takes &[Rank])
- tokio-tungstenite 0.28 -> 0.29 (dev-dependency)

Adapted call sites in errors.rs, generator.rs, latency.rs, and tokens.rs.
All 164 tests pass and clippy is clean.
clippy 1.95.0 ships a new `clippy::unnecessary_sort_by` lint that
flags the sort_by closure in `draw_model_chart`. Replace the closure
with `sort_by_key + std::cmp::Reverse` per the lint's suggestion.
Behavior is unchanged.
@chaliy chaliy merged commit e07440c into main May 17, 2026
11 checks passed
@chaliy chaliy deleted the claude/maint-deps-update-t0rOv branch May 17, 2026 05:30
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.

1 participant