From a103434779d225b57e27e224e5cc70ef298897ae Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 5 Nov 2025 16:28:36 +0300 Subject: [PATCH] fix: Add verbose output and progress messages for Rust installation - Show 'please wait' message during Rust installation - Add --verbose flag to rustup installer - Add progress messages for each installation step - Check if .cargo/env exists before sourcing - Improves user experience by showing what's happening --- setup.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 415a8b8..f7bfb7a 100755 --- a/setup.sh +++ b/setup.sh @@ -169,12 +169,22 @@ install_dependencies() { # Install Rust if missing if [ $RUST_MISSING -eq 1 ]; then echo -e "\n${YELLOW}Installing Rust...${NC}" - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - source "$HOME/.cargo/env" + echo "This may take a few minutes. Please wait..." + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --verbose + + # Source cargo env + if [ -f "$HOME/.cargo/env" ]; then + source "$HOME/.cargo/env" + fi + + echo -e "\n${YELLOW}Configuring Rust toolchain...${NC}" rustup default stable rustup update + + echo -e "\n${YELLOW}Adding WebAssembly target...${NC}" rustup target add wasm32-unknown-unknown - echo -e "${GREEN}✓ Rust installed${NC}" + + echo -e "${GREEN}✓ Rust installed successfully${NC}" else # Ensure wasm target is installed echo -e "\n${YELLOW}Ensuring wasm32-unknown-unknown target...${NC}"