rust: Allow specifying which package to build for git crates

This commit is contained in:
2022-12-16 19:08:01 +01:00
parent 8479767fcc
commit 2e09c7354a

View File

@@ -609,7 +609,7 @@
shell: | shell: |
set -o errexit set -o errexit
{{ cargo_env }} {{ cargo_env }}
rustup run {{ item.toolchain|default('stable') }} cargo install --features "{{ item.features|default([])|join(' ') }}" {{ "--target " ~ item.target if item.target is defined else '' }} --git {{ item.url }} --branch {{ item.branch }} rustup run {{ item.toolchain|default('stable') }} cargo install --features "{{ item.features|default([])|join(' ') }}" {{ "--target " ~ item.target if item.target is defined else '' }} --git {{ item.url }} --branch {{ item.branch }} {{ item.package|default("") }}
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ binary_id_git }} mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ binary_id_git }}
args: args:
creates: /var/lib/rust_build/.cargo/bin/{{ binary_id_git }} creates: /var/lib/rust_build/.cargo/bin/{{ binary_id_git }}