Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions recipe/install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ 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}"/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
# invoking `cc`. An executable of this name is not necessarily available. By
# setting a magic environment variable, we can override this default.
Expand Down
6 changes: 5 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ source:
folder: rust-std # [(linux or win) and x86_64]

build:
number: 0
number: 1

requirements:
build:
Expand Down Expand Up @@ -154,6 +154,10 @@ 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]
- if exist %LIBRARY_PREFIX%\bin\rust-analyzer.pdb exit 1 # [win]

- name: rust-src
script: install-rust-src.sh # [unix]
Expand Down