Skip to content

Conversation

@ShaharNaveh
Copy link
Collaborator

@ShaharNaveh ShaharNaveh commented Nov 17, 2025

ref: #6214

Summary by CodeRabbit

  • Chores
    • Reorganized workspace layout and updated demo and notebook build configs to use the relocated WebAssembly crate.
    • Updated continuous integration linting to reference the new WebAssembly crate location.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 17, 2025

Walkthrough

The wasm crate was relocated from wasm/lib/ to crates/wasm/. References were updated: workspace members in Cargo.toml, the CI clippy manifest path in .github/workflows/ci.yaml, and webpack aliases / WasmPackPlugin crateDirectory in the wasm demo and notebook webpack configs.

Changes

Cohort / File(s) Change summary
Workspace manifest
Cargo.toml
Removed wasm/lib from the [workspace] members list to reflect the crate move to crates/wasm.
CI workflow
.github/workflows/ci.yaml
Updated clippy manifest path from wasm/lib/Cargo.toml to crates/wasm/Cargo.toml in the lint job.
WASM webpack configs
wasm/demo/webpack.config.js, wasm/notebook/webpack.config.js
Updated alias resolution from ../lib/pkg to ../../crates/wasm/pkg and changed WasmPackPlugin crateDirectory from ../lib to ../../crates/wasm.

Sequence Diagram(s)

(omitted — changes are path updates and do not modify runtime control flow)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify crates/wasm/Cargo.toml exists and is correct.
  • Search repository for any remaining wasm/lib references (build scripts, docs, package.json).
  • Run the wasm demo and notebook webpack builds to confirm aliasing and WasmPackPlugin paths resolve.

Possibly related PRs

Suggested reviewers

  • youknowone

Poem

🐰 I hopped the paths and nudged the maps,

Crates moved home with tidy wraps.
CI and demo chase the trail,
Small changes, forward sail.
A carrot cheer for every commit! 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly summarizes the main change: moving the wasm library from wasm/lib to crates/wasm. This is directly reflected in all file modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5fb9514 and 433e55b.

📒 Files selected for processing (2)
  • wasm/demo/webpack.config.js (2 hunks)
  • wasm/notebook/webpack.config.js (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • wasm/demo/webpack.config.js
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-28T22:22:55.921Z
Learnt from: reactive-firewall
Repo: RustPython/RustPython PR: 6176
File: .github/workflows/Check_Tests.yml:133-141
Timestamp: 2025-09-28T22:22:55.921Z
Learning: In the RustPython project's CI-5974-Test-RustPython-Integration action, the override-rustpython-path input is marked as required but has runtime fallback logic that defaults to RUSTPYTHONPATH environment variable or "Lib" if neither is provided, making explicit specification unnecessary in most cases.

Applied to files:

  • wasm/notebook/webpack.config.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
  • GitHub Check: Run snippets and cpython tests (windows-latest)
  • GitHub Check: Run tests under miri
  • GitHub Check: Run snippets and cpython tests (macos-latest)
  • GitHub Check: Check Rust code with clippy
  • GitHub Check: Run rust tests (windows-latest)
  • GitHub Check: Run rust tests (ubuntu-latest)
  • GitHub Check: Run snippets and cpython tests (ubuntu-latest)
  • GitHub Check: Ensure compilation on various targets
  • GitHub Check: Check the WASM package and demo
  • GitHub Check: Run rust tests (macos-latest)
  • GitHub Check: Run snippets and cpython tests on wasm-wasi
  • GitHub Check: auto_format
🔇 Additional comments (1)
wasm/notebook/webpack.config.js (1)

19-22: LGTM! Alias path correctly updated.

The rustpython alias now correctly points to the new crate location at crates/wasm/pkg.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@youknowone youknowone merged commit 916d3ba into RustPython:main Nov 17, 2025
13 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Nov 17, 2025
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