From 685c7d6a9657cb9527ef37523a8d858e100819e1 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 28 Apr 2026 16:08:56 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20DEV-DEPENDENCIES.sh=20s=C3=B3=20instala?= =?UTF-8?q?=20ferramentas,=20n=C3=A3o=20configura=20cargo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove configuração automática do ~/.cargo/config.toml - O workspace já tem .cargo/config.toml que sobrescreve o global - Devs só precisam rodar ./DEV-DEPENDENCIES.sh para instalar mold/lld/clang - Config do projeto (./.cargo/config.toml) é usado automaticamente --- DEV-DEPENDENCIES.sh | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/DEV-DEPENDENCIES.sh b/DEV-DEPENDENCIES.sh index 8afe6260..57a3544b 100755 --- a/DEV-DEPENDENCIES.sh +++ b/DEV-DEPENDENCIES.sh @@ -50,30 +50,13 @@ ldconfig command -v mold &> /dev/null || install_mold -configure_cargo() { -echo "Configuring Cargo for fast linking (mold/lld)..." - -# Detect current user's home directory -if [ -n "$SUDO_USER" ]; then - USER_HOME=$(eval echo ~$SUDO_USER) -else - USER_HOME=$HOME -fi - -mkdir -p "$USER_HOME/.cargo" -cat > "$USER_HOME/.cargo/config.toml" << 'EOF' -[target.x86_64-unknown-linux-gnu] -linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=lld"] - -[build] -jobs = 6 -EOF - -echo "Cargo configured for $USER_HOME!" -echo "Link time reduced by ~30-40%" -} - -configure_cargo - -echo "Dev dependencies installed!" \ No newline at end of file +echo "Dev dependencies installed!" +echo "" +echo "✅ Tools installed: clang, lld, mold, sccache" +echo "📦 Project will use .cargo/config.toml from workspace" +echo "⚡ Link time reduced by ~30-40% with mold/lld" +echo "" +echo "Next steps:" +echo " 1. Run: ./DEV-DEPENDENCIES.sh (already done)" +echo " 2. Workspace .cargo/config.toml will be used automatically" +echo " 3. Build: cargo build -p botserver --bin botserver" \ No newline at end of file