Remove windows dependencies from vendor crates

This commit is contained in:
Raúl Marín 2024-04-09 19:25:24 +02:00
parent 26469c9c10
commit 9afe5c4b24
2 changed files with 5 additions and 1 deletions

2
contrib/rust_vendor vendored

@ -1 +1 @@
Subproject commit c0706c44aa58775958dac80a33ad2c9de255f499
Subproject commit 08e82ca6543683abe4770305ad811a942186a520

View File

@ -39,6 +39,10 @@ cargo vendor --no-delete "$CH_TOP_DIR"/contrib/rust_vendor
cd "$RUSTC_ROOT"/lib/rustlib/src/rust/library/test/
cargo vendor --no-delete "$CH_TOP_DIR"/contrib/rust_vendor
# Remove windows only dependencies (which are really heavy and we don't want in the repo)
rm -rf "$CH_TOP_DIR"/contrib/rust_vendor/winapi* "$CH_TOP_DIR"/contrib/rust_vendor/windows*
# Cleanup the lock files we copied
rm "$RUSTC_ROOT"/lib/rustlib/src/rust/library/std/Cargo.lock "$RUSTC_ROOT"/lib/rustlib/src/rust/library/test/Cargo.lock
cd "$CH_TOP_DIR"/rust/workspace
```