Skip to content

Commit 6191ab5

Browse files
authored
Merge pull request #2218 from lzutao/comptime
Improve compile time in release profile
2 parents 9400ce7 + 17350bd commit 6191ab5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ path = "src/cli/main.rs"
110110
[profile.release]
111111
lto = true
112112
codegen-units = 1
113+
114+
# Reduce build time by setting proc-macro crates non optimized.
115+
[profile.release.build-override]
116+
opt-level = 0

0 commit comments

Comments
 (0)