diff --git a/install/debian-install.sh b/install/debian-install.sh index 1d0c6fa1..403f089a 100644 --- a/install/debian-install.sh +++ b/install/debian-install.sh @@ -19,9 +19,7 @@ msg_info "Installing Base Dependencies" $STD apt install -y curl wget ca-certificates msg_ok "Installed Base Dependencies" -# msg_info "Downloading and executing tools.func test suite" -# bash <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/test-tools-func.sh) -# msg_ok "Test suite completed" +RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust motd_ssh customize diff --git a/misc/tools.func b/misc/tools.func index f0892c61..73c8ecdf 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -8227,11 +8227,13 @@ setup_ruby() { # # Variables: # 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") # ------------------------------------------------------------------------------ setup_rust() { local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}" + local RUST_PROFILE="${RUST_PROFILE:-default}" local RUST_CRATES="${RUST_CRATES:-}" local CARGO_BIN="${HOME}/.cargo/bin" @@ -8243,8 +8245,8 @@ setup_rust() { # Scenario 1: Rustup not installed - fresh install if ! command -v rustup &>/dev/null; then - msg_info "Setup Rust ($RUST_TOOLCHAIN)" - curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" || { + msg_info "Setup Rust ($RUST_TOOLCHAIN, profile: $RUST_PROFILE)" + 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 "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org" return 7