diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-09-30 13:57:43 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-10-11 15:50:24 +0800 |
| commit | 8bf2725f9be82eec0849cc5efe77bedeb0a693a0 (patch) | |
| tree | 1ab6dbb0701b1d0427010e646e13222ca2b44466 /lang/python/python-setuptools-rust | |
| parent | b4ec01739865770e3d0432683406844f7fd8e707 (diff) | |
rust: Set release profile settings
* codegen-units, lto, opt-level - Set to values to optimize binary
size[1].
* overflow-checks - Enabled because in release mode, integer overflows
are defined as two's complement wrap[2]. It is highly unlikely that
any program is intentionally relying on this behaviour; it would be
better to panic instead of continue execution in this case.
* debug, debug-assertions, panic, rpath - Set to their default (release)
values, to override any settings made by packages, e.g. ripgrep sets
debug = 1[3].
[1]: https://github.com/johnthagen/min-sized-rust
[2]: https://huonw.github.io/blog/2016/04/myths-and-legends-about-integer-overflow-in-rust/
[3]: https://github.com/BurntSushi/ripgrep/blob/13.0.0/Cargo.toml#L79-L80
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-setuptools-rust')
0 files changed, 0 insertions, 0 deletions
