mirror of
https://github.com/clap-rs/clap
synced 2024-09-20 06:22:06 +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 |
||
---|---|---|
.. | ||
examples | ||
src | ||
tests | ||
Cargo.toml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
clap_complete
Shell completion generation for
clap
Dual-licensed under Apache 2.0 or MIT.
About
Related Projects
- clap_complete_fig for fig shell completion support