Skip to content

Commit edbccd4

Browse files
alxmrsclaude
andcommitted
Build the Pyodide wheel with Rust 1.94 or newer
DataFusion 55 requires Rust 1.94, and Pyodide 314.0.7, the newest stable release, pins 1.93.0. The wasm build now uses whichever is newer; the smoke test still loads the wheel in Pyodide. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
1 parent 213084a commit edbccd4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/ci-wasm.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
# The Pyodide release to build for. Its Python version, Emscripten version,
1818
# and Rust toolchain all come from this release's cross-build environment.
1919
PYODIDE_VERSION: "314.0.7"
20+
# The oldest Rust that compiles our dependencies. DataFusion 55 needs 1.94,
21+
# newer than Pyodide 314.0.7's 1.93.0, so the build uses whichever of the
22+
# two is newer. Both are stable releases; the smoke test below loads the
23+
# wheel in Pyodide, which catches a toolchain Pyodide can't load.
24+
MIN_RUST_TOOLCHAIN: "1.94.0"
2025

2126
jobs:
2227
build:
@@ -34,7 +39,10 @@ jobs:
3439
run: |
3540
pip install pyodide-build
3641
pyodide xbuildenv install "$PYODIDE_VERSION"
37-
echo "RUST_TOOLCHAIN=$(pyodide config get rust_toolchain)" >> "$GITHUB_ENV"
42+
PYODIDE_RUST="$(pyodide config get rust_toolchain)"
43+
RUST_TOOLCHAIN="$(printf '%s\n' "$PYODIDE_RUST" "$MIN_RUST_TOOLCHAIN" | sort -V | tail -n 1)"
44+
echo "Pyodide's Rust: $PYODIDE_RUST; building with: $RUST_TOOLCHAIN"
45+
echo "RUST_TOOLCHAIN=$RUST_TOOLCHAIN" >> "$GITHUB_ENV"
3846
3947
- name: Install Rust
4048
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)