Skip to content

Commit

Permalink
update lto profiles for rust projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokun-niu committed Mar 4, 2025
1 parent d343738 commit 3e10cd3
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions control-planes/kubernetes_provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ schemars = "0.8.15"
bytes = "1.7.1"
uuid = { version = "1.10.0", features = ["v4"] }

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions control-planes/mgmt_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ reqwest-streams = { version = "0.3", features=["json"] }

[dev-dependencies]
faux = "^0.1"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions control-planes/resource_provider_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ edition = "2021"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
void = "1.0.2"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions infrastructure/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ members = [

[workspace.package]
version = "0.1.0"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions query-container/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ members = [
"query-host"]
[workspace.package]
version = "0.2.0"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions query-container/publish-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ async-trait = "0.1.68"
axum = { version = "0.7.5", features = ["macros", "http1", "tokio"] }
redis = { version = "0.23.0", features = ["tokio-comp"] }
tracing-subscriber = "0.3.17"

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions query-container/query-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ async-stream = "0.3.5"
[dev-dependencies]
mockall = "0.12"
uuid = {version = "1.4.1", features = ["v4"]}

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions query-container/view-svc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ async-stream = "0.3.5"

[dev-dependencies]
uuid = {version = "1.4.1", features = ["v4"]}

[profile.release]
lto = true
3 changes: 3 additions & 0 deletions sources/shared/change-dispatcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ drasi-comms-dapr = { path = "../../../infrastructure/comms-dapr" }

[build-dependencies]
tonic-build = "0.11"

[profile.release]
lto = true
2 changes: 2 additions & 0 deletions sources/shared/change-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ tracing-subscriber = {version = "0.3.17", features = ["env-filter"]}
uuid = {version = "1.7.0", features = ["v4"]}
serde = "1.0.202"

[profile.release]
lto = true
5 changes: 4 additions & 1 deletion sources/shared/query-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ drasi-comms-http = { path = "../../../infrastructure/comms-http" }
serde_json = "1.0.128"
async-stream = "0.3.5"
futures = "0.3"
env_logger = "0.11"
env_logger = "0.11"

[profile.release]
lto = true

0 comments on commit 3e10cd3

Please sign in to comment.