Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 356c91f

Browse files
committed
build/15-rust: drop lingering files after cargo install
1 parent 66c2d97 commit 356c91f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/15-rust.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ build_rust_build(){
5353
bool "$NOCARGOAUDIT" \
5454
|| build_rust_audit
5555
BUILD_READY
56-
abinfo "Building Cargo package ..."
56+
abinfo 'Building Cargo package ...'
5757
install -vd "$PKGDIR/usr/bin/"
5858
cargo install --locked -f --path "$SRCDIR" \
5959
--root="$PKGDIR/usr/" $CARGO_AFTER \
6060
|| abdie "Compilation failed: $?."
61+
abinfo 'Dropping lingering files ...'
62+
rm -v "$PKGDIR"/usr/.crates{.toml,2.json}
6163
BUILD_FINAL
6264
}
6365

0 commit comments

Comments
 (0)