Skip to content

Commit 343038c

Browse files
authoredOct 3, 2022
Always build Rust extension in release mode (#14009)
Fixes #13990
1 parent 2769ef4 commit 343038c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎build_rust.py

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def build(setup_kwargs: Dict[str, Any]) -> None:
1515
path=cargo_toml_path,
1616
binding=Binding.PyO3,
1717
py_limited_api=True,
18+
# We force always building in release mode, as we can't tell the
19+
# difference between using `poetry` in development vs production.
20+
debug=False,
1821
)
1922
setup_kwargs.setdefault("rust_extensions", []).append(extension)
2023
setup_kwargs["zip_safe"] = False

‎changelog.d/14009.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix bug where Rust extension wasn't built in `release` mode when using `poetry install`.

0 commit comments

Comments
 (0)
Please sign in to comment.