Skip to content

Commit

Permalink
feat: Replace clap with argh
Browse files Browse the repository at this point in the history
I’ve been wanting to do this for a while, but always procrastinated on it. We’ve been using Clap since the 2.0 rewrite, but Clap is known to be a fairly heavy library. Since Rustlings is usually peoples’ first contact with a Rust compilation, I think it’s in our best interests that this complation is as fast as possible. In effect, replacing Clap with the smaller, structopt-style `argh` reduces the amount of crates needing to be compiled from 82 to 60.

I also think this makes the code way easier to read, we don’t need to use Clap’s methods anymore, but can switch over to using pure Rust methods, e.g., switches are booleans, options are Option<String>s or the like, and subcommands are just structs.
  • Loading branch information
shadows-withal committed Apr 21, 2021
1 parent aa0db83 commit 7928122
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 565 deletions.
Loading

0 comments on commit 7928122

Please sign in to comment.