mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 17:08:00 +00:00
5b5f2c1f40
This is a step towards #1041 - `ArgGroup` no longer takes a lifetime - One less field type needs a lifetime For now, we are using a more brute force type (`String`) so we can establish performance base lines. I was torn on whether to use `&str` everywhere or make an `IdRef`. The latter would add a lot of noise that I'm concerned about, so i left it simple for now. `IdRef` would help to communicate the types involved though. Speaking of communicating types, I'm also torn on whether we should use `Id` for all strings or if we should have `Id`, `Name`, etc types to avoid people mixing and matching. This added 18.7 KB. Compared to `HEAD~` on `06_rustup`: - build: 6.23us -> 7.41us - parse: 8.17us -> 9.36us - parse_sc: 7.65us -> 9.29us |
||
---|---|---|
.. | ||
builder | ||
derive | ||
derive_ui | ||
ui | ||
derive_ui.rs | ||
examples.rs | ||
macros.rs | ||
ui.rs |