Skip to content

Commit

Permalink
feat(cargo): setup the release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Dec 9, 2023
1 parent 175e4ba commit ff5b35a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ nl = "new --lib"
jobs = 12 # number of parallel jobs, defaults to # of CPUs
incremental = true # whether or not to enable incremental compilation

[profile.release]
opt-level = 3 # all optmizations
lto = true # LLVM’s link time optimizations. LTO can produce better optimized code, using whole-program analysis, at the cost of longer linking time.
incremental = true

[future-incompat-report]
frequency = 'always' # when to display a notification about a future incompat report

Expand Down

0 comments on commit ff5b35a

Please sign in to comment.