Skip to content

Conversation

@Sl1mb0
Copy link
Contributor

@Sl1mb0 Sl1mb0 commented Nov 19, 2025

Closes #20

Describe your proposed changes here.

  • I've read the contributing section of the project CONTRIBUTING.md.
  • Signed CLA (if not already signed).

@Sl1mb0 Sl1mb0 force-pushed the tm/cargo-build-wasi-sdk branch from 94f7706 to a8564a0 Compare November 19, 2025 12:57
@Sl1mb0 Sl1mb0 requested review from Copilot and crepererum November 19, 2025 13:11
Copilot finished reviewing on behalf of Sl1mb0 November 19, 2025 13:15
Copy link
Contributor

Copilot AI left a 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-sdk target 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.

@Sl1mb0 Sl1mb0 force-pushed the tm/cargo-build-wasi-sdk branch 2 times, most recently from 2021889 to d1e1233 Compare November 19, 2025 16:31
@Sl1mb0 Sl1mb0 force-pushed the tm/cargo-build-wasi-sdk branch 2 times, most recently from 5757d69 to 1bc6ae3 Compare November 21, 2025 05:52
@Sl1mb0 Sl1mb0 force-pushed the tm/cargo-build-wasi-sdk branch from 1bc6ae3 to 44e381e Compare November 21, 2025 12:53
@Sl1mb0 Sl1mb0 requested a review from crepererum November 21, 2025 13:08
@Sl1mb0 Sl1mb0 force-pushed the tm/cargo-build-wasi-sdk branch from e104cc2 to 8ef1058 Compare November 21, 2025 17:29
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.

Move WASI SDK download into build script

3 participants