Skip to content

Fix wasm build and bump rand - #103

Merged
hpeebles merged 2 commits into
masterfrom
fix
Jul 20, 2026
Merged

Fix wasm build and bump rand#103
hpeebles merged 2 commits into
masterfrom
fix

Conversation

@hpeebles

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Rust workspace to event-store v0.12.0, bumps rand to the 0.10 series, and adjusts rand usage/features to restore wasm32-unknown-unknown compatibility (avoiding getrandom-driven build failures on wasm).

Changes:

  • Bump workspace version to 0.12.0 and update workspace dependencies (rand to 0.10.2, tokio to 1.53.1).
  • Rework rand usage in cdk_runtime to use StdRng/RngExt and target-specific rand features to keep wasm builds working.
  • Update integration-test RNG helpers to the new rand distribution module layout.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
rs/utils/Cargo.toml Enables serde derive via workspace dependency to support derives in this crate.
rs/producer/cdk_runtime/src/lib.rs Updates RNG APIs for rand 0.10 and adjusts wasm vs non-wasm seeding logic.
rs/producer/cdk_runtime/Cargo.toml Splits rand features by target to avoid wasm build issues while keeping host random() available.
rs/producer/agent_runtime/Cargo.toml Enables rand feature(s) needed for rand::random() in the agent runtime.
rs/integration_tests/src/rng.rs Updates distribution imports/bounds for rand 0.10 API changes.
rs/integration_tests/Cargo.toml Enables rand feature(s) needed for rand::random() in integration tests.
rs/canister/CHANGELOG.md Adds a changelog entry for v0.12.0 and references the PR.
Cargo.toml Bumps workspace version and upgrades workspace rand/tokio dependency versions.
Cargo.lock Updates lockfile for new workspace version and dependency upgrades.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rs/producer/cdk_runtime/src/lib.rs
Comment thread rs/canister/CHANGELOG.md Outdated
- Prevent potential out-of-bounds panic in wasm `rng_seed` by capping the
  canister id bytes at 24 and writing the timestamp into the final 8 bytes
- Fix 0.12.0 changelog entry to link to the v0.12.0 tag and PR #103

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hpeebles
hpeebles enabled auto-merge (squash) July 20, 2026 19:57
@hpeebles
hpeebles merged commit b97b6ec into master Jul 20, 2026
4 checks passed
@hpeebles
hpeebles deleted the fix branch July 20, 2026 19:58
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.

3 participants