Rustbuddy is a command line suite of tools that automate some of the tasks that I thought were common as a novice learning the Rust language. You might find them handy too. Find it here:
Tools included are:
- bump - increment your version in Cargo.toml
- mkerr - generate a custom error in the fashion of Defining an error type chapter from Rust By Example
- mktest - scaffolds unit tests for each function and method in a file. Uncomment and fill in your values for each case you want to test.
- stringer - generates string representation methods for one or every enum
- tree - not really a tree! Prints a table of version and publication information that recurses through a crate and all of its dependencies (ctrl+c if you get tired of it)
- a nice ascii crab
./rustbuddy [subcommand] [flags] [args]
Many (maybe all) of these tools have analogs on crates.io or elsewhere, but I sometimes find it useful to have one program to act as a toolbox that holds other small programs so that I can (re)discover them with the help command.
If you don't care to build from source or don't have a go compiler, then the release tab has builds for most popular desktop platforms.
This is lightly tested software, so if you find an error, please bring up an issue. If you've got a better way, make a pull request.