Skip to content

Generic Rust project template for cargo-generate

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

gifnksm/rust-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generic Rust project template for cargo-generate

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks