From a714f8efbba9649c4fe34659ca1c6ad0730bbed5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Feb 2026 09:45:16 +0000 Subject: [PATCH 1/3] Remove rust-analyzer from rust package rust-analyzer takes up ~37MB (~4% of the package size) and follows its own update schedule, receiving updates more frequently than the main Rust release cycle. Since it's not required for standard Rust compilation, it should not be bundled with the core toolchain. This change: - Removes rust-analyzer binary and manifest from the rust package - Adds tests to verify rust-analyzer is not present Closes #270 https://claude.ai/code/session_01C7479gGk3F48xKFvTiFPzG --- recipe/install-rust.sh | 4 ++++ recipe/meta.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/recipe/install-rust.sh b/recipe/install-rust.sh index b566bd4..1530b7f 100755 --- a/recipe/install-rust.sh +++ b/recipe/install-rust.sh @@ -16,6 +16,10 @@ rm -rf "${PREFIX}"/share/doc/rust/json rm -f "${PREFIX}"/lib/rustlib/manifest-rust-docs rm -f "${PREFIX}"/lib/rustlib/manifest-rust-docs-json-preview +# Remove rust-analyzer - it is not needed for standard Rust compilation +rm -f "${PREFIX}"/bin/rust-analyzer +rm -f "${PREFIX}"/lib/rustlib/manifest-rust-analyzer + # Fun times -- by default, Rust/Cargo tries to link executables on Linux by # invoking `cc`. An executable of this name is not necessarily available. By # setting a magic environment variable, we can override this default. diff --git a/recipe/meta.yaml b/recipe/meta.yaml index b485395..638616f 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -154,6 +154,9 @@ outputs: - test ! -d "${PREFIX}"/share/doc/rust/json # [unix] - if exist %LIBRARY_PREFIX%\share\doc\rust\html exit 1 # [win] - if exist %LIBRARY_PREFIX%\share\doc\rust\json exit 1 # [win] + # rust-analyzer should not be in the rust package + - test ! -f "${PREFIX}"/bin/rust-analyzer # [unix] + - if exist %LIBRARY_PREFIX%\bin\rust-analyzer.exe exit 1 # [win] - name: rust-src script: install-rust-src.sh # [unix] From 040adc6846eff79bcc26c200358f3568d07f972e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Feb 2026 09:52:45 +0000 Subject: [PATCH 2/3] Bump build number https://claude.ai/code/session_01C7479gGk3F48xKFvTiFPzG --- recipe/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 638616f..ba1b0ea 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -67,7 +67,7 @@ source: folder: rust-std # [(linux or win) and x86_64] build: - number: 0 + number: 1 requirements: build: From cf6bc819e0f4f587cf35a789e6aa484221a4b7eb Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Feb 2026 16:37:56 +0000 Subject: [PATCH 3/3] Remove rust-analyzer.pdb on Windows Also add test to verify the .pdb file is not present. https://claude.ai/code/session_01C7479gGk3F48xKFvTiFPzG --- recipe/install-rust.sh | 1 + recipe/meta.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/recipe/install-rust.sh b/recipe/install-rust.sh index 1530b7f..cfad682 100755 --- a/recipe/install-rust.sh +++ b/recipe/install-rust.sh @@ -18,6 +18,7 @@ rm -f "${PREFIX}"/lib/rustlib/manifest-rust-docs-json-preview # Remove rust-analyzer - it is not needed for standard Rust compilation rm -f "${PREFIX}"/bin/rust-analyzer +rm -f "${PREFIX}"/bin/rust-analyzer.pdb rm -f "${PREFIX}"/lib/rustlib/manifest-rust-analyzer # Fun times -- by default, Rust/Cargo tries to link executables on Linux by diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ba1b0ea..e685919 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -157,6 +157,7 @@ outputs: # rust-analyzer should not be in the rust package - test ! -f "${PREFIX}"/bin/rust-analyzer # [unix] - if exist %LIBRARY_PREFIX%\bin\rust-analyzer.exe exit 1 # [win] + - if exist %LIBRARY_PREFIX%\bin\rust-analyzer.pdb exit 1 # [win] - name: rust-src script: install-rust-src.sh # [unix]