Skip to content

Commit

Permalink
Merge pull request #860 from Raspirus/Benji377-optimize
Browse files Browse the repository at this point in the history
Optimize binary size and performance
  • Loading branch information
Benji377 authored Oct 9, 2024
2 parents 9eec4a9 + 14ecce5 commit 30dffa0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ default-run = "raspirus"
edition = "2021"
rust-version = "1.81"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

# generic dependencies
[dependencies]
threadpool_rs = { git = "https://github.com/GamingGuy003/threadpool_rs.git", features = [
Expand Down Expand Up @@ -52,6 +50,12 @@ windows-sys = { version = "0.59.0", features = [
] }
winapi = "0.3.9"

[profile.release]
opt-level = 3 # Focus on performance
lto = true
codegen-units = 1
strip = true # Removed debugging symbols
#panic = "abort" # Removes exception tree

[package.metadata.packager]
product-name = "Raspirus"
Expand Down

0 comments on commit 30dffa0

Please sign in to comment.