Skip to content

Latest commit

 

History

History
111 lines (77 loc) · 2.72 KB

README.md

File metadata and controls

111 lines (77 loc) · 2.72 KB

Rust Template

Generic Rust project template for cargo-generate.

Here's an example of using this template with cargo-generate. demo

Example projects generated by this template are available:

Template contents

GitHub Integration

Documentation

Usage

Setup

  1. Install cargo-generate

    cargo instlal cargo-generate
  2. Generate your project with this template

    • For bin crate:

      cargo generate --git https://github.com/gifnksm/rust-template.git --bin
    • For lib crate:

      cargo generate --git https://github.com/gifnksm/rust-template.git --lib
  3. Setup GitHub repository

    • Create an empty repository on GitHub
    • Push your project to GitHub

Release

  1. Install cargo-release

    cargo install cargo-release
  2. Run cargo-release (dry-run)

    cargo release <release> -vv

    You should check the released version and changelog updates.

  3. Run cargo-release again (execute)

    cargo release <release> -vv --execute
  4. Wait for GitHub Actions to finish the release process

  5. Update a release on GitHub

Original

This repository borrows many components from rust-github/template.