docker: Move rustup and cargo component lists into vars.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-05-14 04:05:08 +00:00
parent 0463b962fd
commit 2b67de9fc3
2 changed files with 20 additions and 8 deletions

View File

@@ -1279,6 +1279,20 @@ group "buildsys" {
]
}
rustup_components = [
"clippy",
"rustfmt",
]
cargo_installs = [
"cargo-chef",
"cargo-audit",
"cargo-deb",
"cargo-arch",
"cargo-generate-rpm",
"lychee",
]
#
# Rust build environment
#
@@ -1318,6 +1332,8 @@ target "cookware" {
CARGO_HOME = "/opt/${sys_name}/${sys_target}/cargo"
CARGO_TARGET = rust_target
CARGO_TERM_VERBOSE = CARGO_TERM_VERBOSE
cargo_installs = join(" ", cargo_installs)
rustup_components = join(" ", rustup_components)
}
}