Skip to content

Commit

Permalink
Cargo: add release profile to reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
kiron1 committed Dec 31, 2023
1 parent cf195d0 commit f572ace
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "b2960f66f368c418aa5449a964032545081619947b7e323e1cca0ff735f60866",
"checksum": "e4c37f14fffea924e2a2574f97900bf855367dfd97bff3633d396664b71709b1",
"crates": {
"addr2line 0.21.0": {
"name": "addr2line",
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[profile.release]
codegen-units = 1
debug = 0
lto = true
opt-level = "z"
strip = true

[workspace]
resolver = "2"
members = [
Expand Down

0 comments on commit f572ace

Please sign in to comment.