Skip to content

Commit

Permalink
add "prod" profile instead of altering release
Browse files Browse the repository at this point in the history
  • Loading branch information
jfolz committed Jul 23, 2024
1 parent dc8095f commit eb6b0e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ build-backend = "setuptools.build_meta"
target = "_fst"
path = "rust/Cargo.toml"
binding = "PyO3"
args = ["--profile", "prod"]

[tool.cibuildwheel]
environment = "PIP_ONLY_BINARY=:all: CARGO_HOME=/usr/local/"
Expand Down
9 changes: 5 additions & 4 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pyo3 = { version = "0.22.1", features = ["extension-module"] }
fst = "0.4.7"
ouroboros = "0.18.4"

#[profile.release]
#strip = true # Automatically strip symbols from the binary.
#lto = true # Enable LTO
#codegen-units = 1 # Can enable additional optimizations
[profile.prod]
inherits = "release"
strip = true # Automatically strip symbols from the binary.
lto = true # Enable LTO
codegen-units = 1 # Can enable additional optimizations

0 comments on commit eb6b0e0

Please sign in to comment.