1 KiB
1 KiB
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
.gitfolder (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.tomlandsrc/main.rsCargo.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.