Skip to content

Commit

Permalink
Move profiles to workspace cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jul 20, 2024
1 parent b37bf5f commit 156886a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ rustc-demangle.debug = 0
debug = 0
strip = true

# Bigint libraries are slow without optimization, speed up testing
[profile.dev.package.test-float-parse]
opt-level = 3

# Speed up the binary as much as possible
[profile.release.package.test-float-parse]
opt-level = 3
codegen-units = 1
# FIXME: LTO cannot be enabled for binaries in a workspace
# <https://github.com/rust-lang/cargo/issues/9330>
# lto = true

[patch.crates-io]
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on
# here
Expand Down
9 changes: 0 additions & 9 deletions src/etc/test-float-parse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,3 @@ rayon = "1"

[lib]
name = "test_float_parse"

# Bigint libraries are slow without optimization, speed up testing
[profile.dev.package."*"]
opt-level = 3

# Squeeze out the last bit of available speed
[profile.release]
codegen-units = 1
lto = true

0 comments on commit 156886a

Please sign in to comment.