[TD-03] getrandom linked in four versions (0.2 / 0.3 / 0.4 x2) — feature-unification risk for WASM #252
Closed as not planned
getrandom linked in four versions (0.2 / 0.3 / 0.4 x2) — feature-unification risk for WASM #252
Commit:
2f26d91· Finding:TD-03Problem
cargo tree -dshows four copies ofgetrandom(0.2, 0.3, 0.4 ×2 with different feature sets).CLAUDE.mdalready documents the "getrandomneeds thejs(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
getrandomdeps in every workspaceCargo.toml; pin to a single version where possible.getrandom = { version = "0.3", features = ["wasm_js"] }at the workspace level and rely on cargo's unification.Obvious fix — will be auto-PR'd.