Skip to content

Commit 5394439

Browse files
authored
feat: reduce size of release build (#60)
Add some suggestions from https://github.com/johnthagen/min-sized-rust to reduce the size of our output binary. cc @kylebarron
1 parent c0b76ae commit 5394439

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ default-groups = ["dev", "docs"]
7474
[build-system]
7575
requires = ["maturin>=1.7,<2.0"]
7676
build-backend = "maturin"
77+
78+
[tool.maturin]
79+
strip = true
80+
opt-level = "z" # TODO compare with "s"
81+
lto = true
82+
codegen-units = 1

0 commit comments

Comments
 (0)