diff --git a/pyproject.toml b/pyproject.toml index 3422174..a5af99e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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/" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 946af51..f6ae3e0 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -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