Git Product home page Git Product logo

rust-boilerplate's Introduction

Rust Boilerplate ๐Ÿฆ€๐Ÿ“ฆ

A generic Rust application template that (hopefully) follows best practices.

Prerequisites

Getting started

  1. Create a new repository from this template.
    1. Update the name in Cargo.toml.
    2. Update author, title, etc in book.toml.
  2. Setup the local environment using make setup.
  3. Verify everything works by running cargo run -- hello -n 'John Wick'. You should see the following output:
cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/rust-boilerplate hello -n 'John Wick'`
Hello, John Wick!
  1. ๐ŸŽ‰ Skip the boilerplate and get straight to developing!

Features

  • Basic CLI application to get you started.
  • Containerized application with Docker.
  • Precommit to validate format, linting, compilation, and more.
  • Generate Rust documentation using mdbook.
  • Several Makefile commands to accomplish common tasks.
  • ...and more to come! ๐Ÿคž

Helpful commands

$ make help
docker-build                   Build the docker image for this application
docker-push                    Push the docker image to the default container registry
docker-run                     Run the docker image for this application
docs-build                     Generate docs using mdbook
docs-run                       Run a localhost version of docs
help                           Formatted list of make commands
lint                           Format and lint current package
release                        Compile current package into a new release
setup                          Setup and install local development tools (e.g. pre-commit, mdbook)
test-all                       Run the ignored tests
test                           Run the tests
version                        Print versioning info on common tools

rust-boilerplate's People

Contributors

mack avatar

Stargazers

Christopher Santiago avatar Laurent Mbuyu avatar Apurv Tripathi avatar  avatar

Watchers

 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.