From ac7af40f2e9f8ff63e4e84d7cb2055b9931aa11a Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 12 Nov 2025 23:00:57 -0500 Subject: [PATCH] Remove `rust-src` as a component for WASM It's unnecessary since `wasm32v1-none`. --- .github/workflows/lint.yml | 2 +- .github/workflows/pages.yml | 2 +- orchestration/runtime/Dockerfile | 1 - orchestration/src/main.rs | 1 - rust-toolchain.toml | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7aefb032..09ab776a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: uses: ./.github/actions/build-dependencies - name: Install nightly rust - run: rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -t wasm32v1-none -c rust-src -c clippy + run: rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -t wasm32v1-none -c clippy - name: Run Clippy run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 595cc17e..4f1c18df 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -69,7 +69,7 @@ jobs: uses: ./.github/actions/build-dependencies - name: Buld Rust docs run: | - rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -t wasm32v1-none -c rust-docs -c rust-src + rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -t wasm32v1-none -c rust-docs RUSTDOCFLAGS="--cfg docsrs" cargo +${{ steps.nightly.outputs.version }} doc --workspace --no-deps --all-features mv target/doc docs/_site/rust diff --git a/orchestration/runtime/Dockerfile b/orchestration/runtime/Dockerfile index c5a7bd00..7885098d 100644 --- a/orchestration/runtime/Dockerfile +++ b/orchestration/runtime/Dockerfile @@ -11,7 +11,6 @@ RUN rm -rf /etc/apt/sources.list.d/debian.sources && \ RUN apt update -y && apt upgrade -y && apt install -y clang # Add the wasm toolchain -RUN rustup component add rust-src RUN rustup target add wasm32v1-none FROM deterministic diff --git a/orchestration/src/main.rs b/orchestration/src/main.rs index 6515ab46..fb67dcd6 100644 --- a/orchestration/src/main.rs +++ b/orchestration/src/main.rs @@ -188,7 +188,6 @@ RUN apk add clang-dev &format!( r#" # Add the wasm toolchain -RUN rustup component add rust-src RUN rustup target add wasm32v1-none {prelude} diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5acf5964..8e8a6d11 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -2,4 +2,4 @@ channel = "1.91.1" targets = ["wasm32v1-none"] profile = "minimal" -components = ["rust-src", "rustfmt", "clippy"] +components = ["rustfmt", "clippy"]