Git Product home page Git Product logo

rust-templates's Introduction

rust-templates

CI

Templates for creating rust projects with a GitHub-managed lifecycle with cargo-generate. ๐Ÿ—๏ธ๐Ÿ“ƒ

What you get:

  • PR build validation using cargo. โš™๏ธ
  • Automated Release PR generation using release-please. ๐Ÿšข
  • Automated crates.io publishing (after merging a Release PR). ๐Ÿฆ€
  • Dependabot automated dependency update PR generation. ๐ŸŽ
  • A toolchain file for automatic rust toolchain configuration. ๐Ÿ—๏ธ
  • A justfile for common developer actions - for use with the excellent just command runner. ๐Ÿง‘โ€๐Ÿ’ป
  • The MIT License. ๐Ÿ“

Quickstart

First make sure you've done: cargo install cargo-generate.

basic

Use this template for basic rust projects. E.g. A single crate binary or lib, a workspace with a root crate.

cargo generate bengreenier/rust-templates.git basic

Others

Coming soon - Suggest a template.

Configuration

For publishing to crates.io:

  • Create an API access token here.
  • Add it as a GitHub repository secret named CARGO_REGISTRY_TOKEN.
  • .github/release.yml will use this secret when publishing a release.

Favorites

If you use these templates repeatedly, be sure to favorite them for quicker access!

Supporting the project

If this project saved you some time, and you'd like to see it continue to be invested in, consider buying me a coffee. โ˜•

Also, the setup here is largely inspired by Amos' post: My ideal Rust workflow consider supporting them too.

rust-templates's People

Contributors

bengreenier avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.