5 ms·
actually creating a cli with rust is really one of the best ways to use it. it is extremly fast and has a low footprint and if your cli does only one thing well
by merb 4y ago
actually creating a cli with rust is really one of the best ways to use it.
it is extremly fast and has a low footprint and if your cli does only one thing well it's probably easy to write opinionated rust.
and clap is probably the best args parser available on the planet. no other language has an args parser that is so easy to use and still extremly fast with a low overhead than rust.
- sigmonsays 4y agoin what world is the arg parser performance critical?
- renewiltord 4y agoIt is not beyond some base-line which golang cobra, python argparse, rust clap all hit. But it's so nice to use I thought there would have to be a trade-off and there wasn't.
- spfzero 4y agoWhen the cli app is called from another process which passes the arguments, and needs the results back fast?
- merb 4y agowell depending on the language an argsparser can trash quite a lot of memory and become slower than necessary when there is a big argument list. as others said if this cli is also used as a component than it might be important that it is fast. and since claps is so easy to use and has basically no downsides it's stupid to even not at least try it. as said compared to other tools it's really really simple