Idiomatic Rust CLI Framework build on Clap
crates.io·4h·
Discuss: r/rust
🚂Cranelift IR
Preview
Report Post

Hello Everyone, I'm new here and quite new to rust. Recently I "finished" my first library project in rust and I'd like to advertise it here and I'd also like to hear your opinions on it. Is it useful, or is it a bad idea or maybe superfluous?

To the actual thing: As the title says, it's an alternative way (to e.g. clap) to build a cli with subcommands. Basically You write a rust module / function structure, where each module and function represents a (sub)command (the functions are here just the executable subcommands). It removes some of the boilderplate of clap, d.i. You do no longer have to write the whole structs, enum and match-arm structure. The delegation to the functions is done automatically. That's it pretty ...

Similar Posts

Loading similar posts...