-
Notifications
You must be signed in to change notification settings - Fork 1
feat: download WASI SDK from cargo build script #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
94f7706 to
a8564a0
Compare
There was a problem hiding this comment.
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 automates the WASI SDK download process by moving it from a Just/bash script into the Cargo build script. This improves the developer experience by making the build more self-contained and eliminating the need to manually run separate download commands.
Key Changes
- Implemented automatic WASI SDK sysroot download and verification in
build.rs - Added necessary dependencies for download and extraction (ureq, flate2, sha2)
- Converted the Justfile
download-wasi-sdktarget to a no-op with informational message
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| guests/python/build.rs | Added download_wasi_sdk() function with download, SHA256 verification, and extraction logic; added imports for new dependencies |
| guests/python/Cargo.toml | Added build dependencies: flate2, sha2, and ureq for HTTP download and archive handling |
| guests/python/Justfile | Replaced bash script for WASI SDK download with informational message noting automation in build.rs |
| Cargo.lock | Dependency graph updates for new build dependencies and their transitive dependencies |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2021889 to
d1e1233
Compare
5757d69 to
1bc6ae3
Compare
1bc6ae3 to
44e381e
Compare
e104cc2 to
8ef1058
Compare
Closes #20
Describe your proposed changes here.