Created
          July 7, 2025 18:43 
        
      - 
      
 - 
        
Save HenkPoley/6bc7f6108706b01d01806e9f14a4885c to your computer and use it in GitHub Desktop.  
Revisions
- 
        
HenkPoley created this gist
Jul 7, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ #!/usr/bin/env bash set -euo pipefail CARGO_TOML="Cargo.toml" PROFILE_CHUNK=$(cat <<'EOF' [profile.dev] opt-level = 0 debug = 0 incremental = true codegen-units = 256 panic = "unwind" lto = false overflow-checks = false [profile.test] inherits = "dev" EOF ) # Check if profile.dev already exists if grep -q "^\[profile\.dev\]" "$CARGO_TOML"; then echo "Cargo.toml already contains [profile.dev], skipping patch." else echo "Appending dev/test profiles to $CARGO_TOML" echo "$PROFILE_CHUNK" >> "$CARGO_TOML" fi rustup update cargo fetch cargo install --path . --profile dev