This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new d4c6f484 pyiceberg-core: create smaller artifacts (#1841)
d4c6f484 is described below
commit d4c6f484b57966267c6f60de498b70801e4a05c0
Author: Kevin Liu <[email protected]>
AuthorDate: Tue Nov 11 16:50:51 2025 -0800
pyiceberg-core: create smaller artifacts (#1841)
## Which issue does this PR close?
- Closes #1839
## What changes are included in this PR?
Add release profile configs to create smaller python artifacts for
pyiceberg-core
Inspired by
[opendal](https://github.com/apache/opendal/blob/e03f40a3f33856506c5f04c149f52bcc48253872/bindings/python/Cargo.toml#L219-L224)
### Size Reduction
[This
branch](https://github.com/apache/iceberg-rust/actions/runs/19280546898/attempts/1)
vs [main
branch](https://github.com/apache/iceberg-rust/actions/runs/19274277069)
| Name | Old Size | New Size | % Decrease |
|-----------------------------------------------|----------|----------|------------|
| wheels-macos-latest-universal2-apple-darwin | 63.2 MB | 44.4 MB |
29.75% |
| wheels-ubuntu-latest-aarch64 | 101 MB | 66.1 MB | 34.55% |
| wheels-ubuntu-latest-armv7l | 104 MB | 70.5 MB | 32.21% |
| wheels-ubuntu-latest-x86_64 | 34.8 MB | 23.8 MB | 31.61% |
| wheels-windows-latest | 30.3 MB | 25.9 MB | 14.52% |
| wheels-sdist | 574 KB | 575 KB
## Are these changes tested?
<!--
Specify what test covers (unit test, integration test, etc.).
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
Yes manually built and verified
https://github.com/apache/iceberg-rust/actions/runs/19280546898
---
bindings/python/Cargo.toml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml
index b8c1efe6..9d4e94ab 100644
--- a/bindings/python/Cargo.toml
+++ b/bindings/python/Cargo.toml
@@ -37,3 +37,9 @@ pyo3 = { version = "0.25", features = ["extension-module",
"abi3-py39"] }
iceberg-datafusion = { path = "../../crates/integrations/datafusion" }
datafusion-ffi = { version = "50" }
tokio = { version = "1.46.1", default-features = false }
+
+[profile.release]
+codegen-units = 1
+debug = false
+lto = "fat"
+strip = true