https://github.com/xandkar/rust-cli-parsing-libs-compare
Quick comparison of Rust CLI parsing libs
https://github.com/xandkar/rust-cli-parsing-libs-compare
Last synced: 6 months ago
JSON representation
Quick comparison of Rust CLI parsing libs
- Host: GitHub
- URL: https://github.com/xandkar/rust-cli-parsing-libs-compare
- Owner: xandkar
- Created: 2024-05-01T16:56:53.000Z (over 1 year ago)
- Default Branch: electus
- Last Pushed: 2024-05-02T16:09:27.000Z (over 1 year ago)
- Last Synced: 2024-10-19T03:06:39.575Z (12 months ago)
- Language: Rust
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Compare Rust CLI parsing libs
===============================================================================Repos
-------------------------------------------------------------------------------- clap:
- argh:Executable binary size
-------------------------------------------------------------------------------| size | crate | profile |
|------|-----------|---------|
| 448K | with-argh | release |
| 1.1M | with-clap | release |
| 4.5M | with-argh | debug |
| 14M | with-clap | debug |Help
-------------------------------------------------------------------------------### clap
Both `-h` and `--help`:
### argh
Only `--help`:
Warnings for unused parameters
-------------------------------------------------------------------------------### clap
None.
### argh
warning: fields `jump`, `height`, and `pilot_nickname` are never read
--> pkgs/argh/src/main.rs:8:5
|
5 | struct Cli {
| --- fields in this struct
...
8 | jump: bool,
| ^^^^
...
12 | height: usize,
| ^^^^^^
...
16 | pilot_nickname: Option,
| ^^^^^^^^^^^^^^
|
= note: `Cli` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by defaultwarning: `with-argh` (bin "with-argh") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 0.00s