clap/clap_builder
Alex Crichton 9a9aabc178 refactor: Reduce code size of testing tokens if they're a number
This commit is a tiny win in compiled code size of a final binary
including `clap` which shaves off 19k of compiled code locally.
Previously tokens were checked if they were a number by using
`.parse::<f64>().is_ok()`, but parsing floats is relatively heavyweight
in terms of code size. This replaces the check with a more naive "does
this string have lots of ascii digits" check where the compiled size of
this check should be much smaller.
2023-10-24 09:17:45 -07:00
..
src refactor: Reduce code size of testing tokens if they're a number 2023-10-24 09:17:45 -07:00
Cargo.toml fix: Remove unused dev-dependencies 2023-10-10 20:11:33 +08:00
CONTRIBUTING.md refactor: Split out clap_builder for faster derive builds 2023-03-24 21:50:02 -05:00
LICENSE-APACHE refactor: Split out clap_builder for faster derive builds 2023-03-24 21:50:02 -05:00
LICENSE-MIT refactor: Split out clap_builder for faster derive builds 2023-03-24 21:50:02 -05:00
README.md refactor: Split out clap_builder for faster derive builds 2023-03-24 21:50:02 -05:00

clap_builder

Builder implementation for clap.

docs.rs

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING for more details.