Welcome to my new series of blog posts where I go through the various steps that it takes to rebuild Composer in Rust. If you've read some of my more recent blog posts, you can probably tell I'm in my "programming is fun, right?"

The most popular CLI framework in the Rust world is clap, so I'm going to use that because who in this world would want to roll their own argparse in 2024?

The crs package is going to be the main binary for the project, so that's where I'm going to start building out the command-line interface.

So now, if I were to run the project in the terminal: cargo run --package crs -- require hello
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners