Skip to content

Commit 156886a

Browse files
committed
Move profiles to workspace cargo.toml
1 parent b37bf5f commit 156886a

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ rustc-demangle.debug = 0
106106
debug = 0
107107
strip = true
108108

109+
# Bigint libraries are slow without optimization, speed up testing
110+
[profile.dev.package.test-float-parse]
111+
opt-level = 3
112+
113+
# Speed up the binary as much as possible
114+
[profile.release.package.test-float-parse]
115+
opt-level = 3
116+
codegen-units = 1
117+
# FIXME: LTO cannot be enabled for binaries in a workspace
118+
# <https://github.com/rust-lang/cargo/issues/9330>
119+
# lto = true
120+
109121
[patch.crates-io]
110122
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on
111123
# here

src/etc/test-float-parse/Cargo.toml

-9
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,3 @@ rayon = "1"
1313

1414
[lib]
1515
name = "test_float_parse"
16-
17-
# Bigint libraries are slow without optimization, speed up testing
18-
[profile.dev.package."*"]
19-
opt-level = 3
20-
21-
# Squeeze out the last bit of available speed
22-
[profile.release]
23-
codegen-units = 1
24-
lto = true

0 commit comments

Comments
 (0)