Remove rust-src as a component for WASM

It's unnecessary since `wasm32v1-none`.
This commit is contained in:
Luke Parker
2025-11-12 23:00:57 -05:00
parent 264bdd46ca
commit ac7af40f2e
5 changed files with 3 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ jobs:
uses: ./.github/actions/build-dependencies uses: ./.github/actions/build-dependencies
- name: Install nightly rust - 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 - name: Run Clippy
run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module

View File

@@ -69,7 +69,7 @@ jobs:
uses: ./.github/actions/build-dependencies uses: ./.github/actions/build-dependencies
- name: Buld Rust docs - name: Buld Rust docs
run: | 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 RUSTDOCFLAGS="--cfg docsrs" cargo +${{ steps.nightly.outputs.version }} doc --workspace --no-deps --all-features
mv target/doc docs/_site/rust mv target/doc docs/_site/rust

View File

@@ -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 RUN apt update -y && apt upgrade -y && apt install -y clang
# Add the wasm toolchain # Add the wasm toolchain
RUN rustup component add rust-src
RUN rustup target add wasm32v1-none RUN rustup target add wasm32v1-none
FROM deterministic FROM deterministic

View File

@@ -188,7 +188,6 @@ RUN apk add clang-dev
&format!( &format!(
r#" r#"
# Add the wasm toolchain # Add the wasm toolchain
RUN rustup component add rust-src
RUN rustup target add wasm32v1-none RUN rustup target add wasm32v1-none
{prelude} {prelude}

View File

@@ -2,4 +2,4 @@
channel = "1.91.1" channel = "1.91.1"
targets = ["wasm32v1-none"] targets = ["wasm32v1-none"]
profile = "minimal" profile = "minimal"
components = ["rust-src", "rustfmt", "clippy"] components = ["rustfmt", "clippy"]