src | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
config.example.toml | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
rust-toolchain.toml | ||
rustfmt.toml |
rust-tokio-service-template
How to use
-
Clone the repository
git clone --depth 1 https://src.honbra.com/honbra/rust-tokio-service-template.git my-app
-
Go into the local copy
cd my-app
-
Delete the
.git
folder (you don't need the commit history for a template)rm -rf .git
-
Initialize a new Git repository (optional)
git init
-
Change the app name in
Cargo.toml
andsrc/main.rs
Cargo.toml - name = "rust-tokio-service-template" + name = "my-app"
src/main.rs - set_up_tracing("rust_tokio_service_template").context("Failed to set up tracing")?; + set_up_tracing("my_app").context("Failed to set up tracing")?;
-
Do your thing, write some code, commit cybercrime
# I can't show you how to commit cybercrime, sorry
-
Run your app
cargo run
License
This template is licensed under the Unlicense. More information can be found in the LICNSE file.