mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
c165b601ac
Originally, clap carried a lifetime parameter. When moving away from that, we took the approach that dynamically generated strings are always supported and `&'static str` was just an optimization. The problem is the code size increase from this is dramatic. So we're taking the opposite approach and making dynamic formatting opt-in under the `string` feature flag. When deciding on an implementation, I favored the faster one rather than the one with smaller code size since small code size can be gotten through other means. Before: 567.2 KiB, 15.975 µs After: 541.1 KiB, 9.7855 µs With `string`: 576.6 KiB, 13.016 µs |
||
---|---|---|
.. | ||
builder | ||
derive | ||
derive_ui | ||
ui | ||
derive_ui.rs | ||
examples.rs | ||
macros.rs | ||
ui.rs |