This is a template for a program written in Rust.
Suppose your program is called "ethtool".
sed -i "s/foobar/ethtool/gI" Cargo.toml
sed -i "s/Foobar/EthTool/gI" src/*.rs
- Manually populate
LICENSE
(optionally replacing it altogether) - Manually populate
Cargo.toml
with the necessary fields rm -rf .git && git init
(reinitialise Git repository for your project; ignore if you're using the GitHub template feature)- ???
- Profit
- Global error type allowing ready use of the question mark operator
- Derived Clap-v3-style CLI
- Asynchronous by default
- GitHub Actions workflow for CI/CD
For most applications, I would wager boilerplate obeys a power law. This template aims to capture the vast majority of such boilerplate by targeting the least common denominator of functionality amongst the various domains I work on.