Kai-Karren / rust-template

An example for a simple initial Rust project set-up including gitignore and dockerfile for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Template

A simple template/example repo for the set-up of Rust projects including a gitignore and a dockerfile.

Set-up

You normally create a Rust project with the following command.

cargo new project_name

Build

cargo build

Run the test cases

cargo test

In Rust you write the unit tests directly in the implementation files. Only integration tests are moved into an own module/crate. The template also includes an example.

Run

cargo run

Docker

docker build -t rust-template .
docker run rust-template

About

An example for a simple initial Rust project set-up including gitignore and dockerfile for Rust.


Languages

Language:Rust 100.0%