aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-07-10 22:20:34 +0100
committerdiogo464 <[email protected]>2025-07-10 22:20:34 +0100
commit0ead2c37efe34278a859edbce40e8bba7bf021fd (patch)
treeaaf17c0a8bd10b596962ae52f25e8bcb0e62dea8 /Cargo.toml
parent3b0721341c46922b5c1c94bdbbf37099424ee5bc (diff)
Add GitHub Actions release workflow and build scripts
- Add .github/workflows/release.yml for automated releases on version tags - Add scripts/build-static.sh for building statically linked binaries - Add scripts/prepare-release.sh for preparing release artifacts - Optimize Cargo.toml for smaller binary size (reduced from 4.5MB to 2.9MB) - Add scripts/README.md with usage documentation The workflow automatically builds binaries for Linux (musl) and macOS (Intel/ARM) when a version tag is pushed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 447b346..ade2d8c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,16 @@ thiserror = "2.0.12"
14tokio = { version = "1.46.1", features = ["full"] } 14tokio = { version = "1.46.1", features = ["full"] }
15tracing = "0.1.41" 15tracing = "0.1.41"
16tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } 16tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
17
18[profile.release]
19# Optimize for size
20opt-level = "z" # Optimize for size
21lto = true # Enable Link Time Optimization
22codegen-units = 1 # Compile crates one after another for better optimizations
23strip = true # Strip symbols from binary
24debug = false # Disable debug info
25
26# Additional size optimizations
27[profile.release.package."*"]
28opt-level = "z"
29strip = "symbols"