Browse Source

Enable LTO for warp-rust (#6310)

Konrad Borowski 4 years ago
parent
commit
845f16abdf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      frameworks/Rust/warp-rust/Cargo.toml

+ 5 - 0
frameworks/Rust/warp-rust/Cargo.toml

@@ -12,3 +12,8 @@ tokio = { version = "1.0.2", features = ["macros", "rt-multi-thread"] }
 tokio-postgres = "0.7.0"
 warp = "0.3.0"
 yarte = "0.14.1"
+
+[profile.release]
+codegen-units = 1
+opt-level = 3
+lto = true