Skip to content

Commit

Permalink
Set lto option to true in the release profile
Browse files Browse the repository at this point in the history
In this way we do not leave inside the binaries every Sifis-Home
library symbol, but only the ones effectively used by a programmer
  • Loading branch information
Luni-4 committed Sep 26, 2023
1 parent 17a4129 commit e696653
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions door/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
anyhow = "1.0.75"
assert_cmd = "2.0.12"
tempfile = "3.8.0"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions fridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
anyhow = "1.0.75"
assert_cmd = "2.0.12"
tempfile = "3.8.0"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions lamp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
anyhow = "1.0.75"
assert_cmd = "2.0.12"
tempfile = "3.8.0"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions sink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
anyhow = "1.0.75"
assert_cmd = "2.0.12"
tempfile = "3.8.0"

[profile.release]
lto = true

0 comments on commit e696653

Please sign in to comment.