Skip to content

Commit

Permalink
improve cargo profile config
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 13, 2024
1 parent 33f68da commit 6b3e961
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ eyre = { git = "https://github.com/thewh1teagle/eyre", branch = "feat/report-ser
"serialize",
] }
serde_json = "1.0"

# https://v1.tauri.app/v1/guides/building/app-size/#rust-build-time-optimizations
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols
8 changes: 0 additions & 8 deletions desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,3 @@ metal = ["vibe_core/metal"]
openblas = ["vibe_core/openblas"]
rocm = ["vibe_core/rocm"]
vulkan = ["vibe_core/vulkan", "dep:ash"]

# https://v1.tauri.app/v1/guides/building/app-size/#rust-build-time-optimizations
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols

0 comments on commit 6b3e961

Please sign in to comment.