Skip to content

[TD-03] getrandom linked in four versions (0.2 / 0.3 / 0.4 x2) — feature-unification risk for WASM #252

@intendednull

Description

@intendednull

Commit: 2f26d91 · Finding: TD-03

Problem

cargo tree -d shows four copies of getrandom (0.2, 0.3, 0.4 ×2 with different feature sets). CLAUDE.md already documents the "getrandom needs the js (v0.2) / wasm_js (v0.3) features on WASM" caveat. Four versions makes that caveat brittle — any new crate adding randomness must pick the correct version + feature.

Fix

  • Audit direct getrandom deps in every workspace Cargo.toml; pin to a single version where possible.
  • Add getrandom = { version = "0.3", features = ["wasm_js"] } at the workspace level and rely on cargo's unification.

Obvious fix — will be auto-PR'd.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions