/rust-template

A template for a rust project

Primary LanguageJustThe UnlicenseUnlicense

Rust project template

Setup (Clone)

Reset the repository

rm -rf .git
git init

Library

  1. Init cargo project
cargo init --lib
  1. Remove the release ci
rm .github/workflows/release.yaml
  1. Remove the install command from justfile

Binary

  1. Init cargo project
cargo init --bin
  1. Create src/main.rs.
echo 'fn main() {}' > src/main.rs

Finally

As a last options you can have a look at Cargo.template.toml to see if any of the options suit the project.