Skip to content

neoncitylights/rust

Repository files navigation

Rust template

A repository template to get started with writing Rust projects.

Features

Getting started

Creating a new repository

Choose a method:

  • GitHub UI: Press the "Use this template" button in the top-right corner of this page.
  • GitHub CLI: Install GitHub CLI. Then run one of the following:
    gh repo create --template neoncitylights/rust --public --clone {{repository}}  # clone as public
    gh repo create --template neoncitylights/rust --private --clone {{repository}} # clone as private

Replace placeholders

Replace the following placeholders with your editor's find-and-replace:

  • {{library}} - The name of the library.
  • {{desc}} - The description of the library.
  • {{author}} - The author's name of the library. For example, this could be a username, nickname, or real name.
  • {{email}} - The author's email address. This is optional and can be deleted.
  • neoncitylights/rust - Replace this with the name of your repository.
  • my_crate - Replace this with the name of your crate.

Configure

Tool File path Reference
GitHub Actions CI .github/workflows Reference
Cargo package Cargo.toml Reference
Clippy (Linter) .clippy.toml Repository, Reference
Rustfmt (Formatter) .rustfmt.toml Repository, Reference

Run scripts locally

Script Command
Run tests cargo test
Run Rustfmt cargo fmt
Run Clippy cargo clippy
Build crate documentation cargo doc
Run security audits cargo audit (with cargo-audit)

About

repository template for Rust projects

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages