rust_profile

This commit is contained in:
MickLesk
2026-06-02 08:40:59 +02:00
parent 5084a57980
commit 9a78f9f263
2 changed files with 5 additions and 5 deletions

View File

@@ -19,9 +19,7 @@ msg_info "Installing Base Dependencies"
$STD apt install -y curl wget ca-certificates $STD apt install -y curl wget ca-certificates
msg_ok "Installed Base Dependencies" msg_ok "Installed Base Dependencies"
# msg_info "Downloading and executing tools.func test suite" RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
# bash <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/test-tools-func.sh)
# msg_ok "Test suite completed"
motd_ssh motd_ssh
customize customize

View File

@@ -8227,11 +8227,13 @@ setup_ruby() {
# #
# Variables: # Variables:
# RUST_TOOLCHAIN - Rust toolchain to install (default: stable) # RUST_TOOLCHAIN - Rust toolchain to install (default: stable)
# RUST_PROFILE - Rust installation profile (default: default, e.g. minimal)
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1") # RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
setup_rust() { setup_rust() {
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}" local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
local RUST_PROFILE="${RUST_PROFILE:-default}"
local RUST_CRATES="${RUST_CRATES:-}" local RUST_CRATES="${RUST_CRATES:-}"
local CARGO_BIN="${HOME}/.cargo/bin" local CARGO_BIN="${HOME}/.cargo/bin"
@@ -8243,8 +8245,8 @@ setup_rust() {
# Scenario 1: Rustup not installed - fresh install # Scenario 1: Rustup not installed - fresh install
if ! command -v rustup &>/dev/null; then if ! command -v rustup &>/dev/null; then
msg_info "Setup Rust ($RUST_TOOLCHAIN)" msg_info "Setup Rust ($RUST_TOOLCHAIN, profile: $RUST_PROFILE)"
curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" || { curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --profile "$RUST_PROFILE" --default-toolchain "$RUST_TOOLCHAIN" || {
msg_error "Failed to install Rust" msg_error "Failed to install Rust"
msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org" msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org"
return 7 return 7