You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exposes zip's large file support through a new cli arg
`--compression-enable-large-file-support`. This supports use cases where
the zip's content is larger than 4GB.
```
💥 maturin failed
Caused by: Failed to write to zip archive for "wheel/abc.abi3.so"
Caused by: Large file option has not been set
```
Looks like the readmes where not up to date, so the diff is a bit larger
than just the compression option.
Copy file name to clipboardExpand all lines: guide/src/distribution.md
+45-18Lines changed: 45 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,22 +39,21 @@ Arguments:
39
39
Rustc flags
40
40
41
41
Options:
42
-
--strip
43
-
Strip the library for minimum file size
42
+
--strip [<STRIP>]
43
+
Strip the library for minimum file size. Can be set to `true` or `false`, or used as a flag (`--strip` implies `true`)
44
44
45
-
--include-debuginfo
46
-
Include debug info files (.pdb on Windows, .dSYM on macOS, .dwp on Linux) in the wheel.
47
-
When enabled, maturin automatically configures split-debuginfo=packed so that separate
48
-
debug info files are produced. Cannot be used with --strip.
45
+
[env: MATURIN_STRIP=]
46
+
[possible values: true, false]
49
47
50
48
--sdist
51
-
Build a source distribution
49
+
Build a source distribution and build wheels from it.
52
50
53
-
--compatibility [<compatibility>...]
54
-
Control platform tags. Use `pypi` to ensure PyPI compatibility, or specify platform-specific
55
-
tags like `manylinux2014`, `musllinux_1_2`, or `linux`.
51
+
This verifies that the source distribution is complete and can be used to build the project from source.
52
+
53
+
--pgo
54
+
Build with Profile-Guided Optimization (PGO).
56
55
57
-
The default is the lowest compatible `manylinux` tag, or plain `linux` if nothing matched
56
+
Requires `pgo-command` to be set in `[tool.maturin]` in pyproject.toml. This performs a three-phase build: instrumented build, profile training, and optimized rebuild.
58
57
59
58
-i, --interpreter [<INTERPRETER>...]
60
59
The python versions to build wheels for, given as the executables of interpreters such as `python3.9` or `/usr/bin/python3.8`
The directory to store the built wheels in. Defaults to a new "wheels" directory in the project's target directory
69
+
--compatibility [<compatibility>...]
70
+
Control the platform tag and PyPI compatibility.
71
+
72
+
This options offers both fine-grained control over the linux libc tag and a more automatic PyPI-compatibility option.
73
+
74
+
The `pypi` option applies on all platforms and ensure that only tags that can be uploaded to PyPI are used. The linux-specific options are `manylinux` tags (for example `manylinux2014`/`manylinux_2_24`) or `musllinux` tags (for example `musllinux_1_2`), and `linux` for the native linux tag. They are
75
+
ignored on non-linux platforms.
76
+
77
+
Note that `manylinux1` and `manylinux2010` are unsupported by the rust compiler. Wheels with the native `linux` tag will be rejected by pypi, unless they are separately validated by `auditwheel`.
78
+
79
+
The default is the lowest compatible `manylinux` tag, or plain `linux` if nothing matched.
72
80
73
81
--auditwheel <AUDITWHEEL>
74
82
Audit wheel for manylinux compliance
@@ -85,6 +93,15 @@ Options:
85
93
86
94
Make sure you installed zig with `pip install maturin[zig]`
87
95
96
+
-o, --out <OUT>
97
+
The directory to store the built wheels in. Defaults to a new "wheels" directory in the project's target directory
98
+
99
+
--include-debuginfo
100
+
Include debug info files (.pdb on Windows, .dSYM on macOS, .dwp on Linux) in the wheel. When enabled, maturin automatically configures split-debuginfo=packed so that separate debug info files are produced
101
+
102
+
--sbom-include <SBOM_INCLUDE>...
103
+
Additional SBOM files to include in the `.dist-info/sboms` directory. Can be specified multiple times
104
+
88
105
-q, --quiet
89
106
Do not print cargo log messages
90
107
@@ -107,14 +124,24 @@ Options:
107
124
Outputs a future incompatibility report at the end of the build (unstable)
108
125
109
126
--compression-method <COMPRESSION_METHOD>
110
-
Zip compression method to use
111
-
112
-
[default: deflated]
127
+
Zip compression method. Only Stored and Deflated are currently compatible with all package managers
0 commit comments