feat: cargo genreate

This commit is contained in:
DavidOnTop 2024-01-28 11:55:06 +01:00
parent fc16497ceb
commit ce7e64f4dd
No known key found for this signature in database
GPG key ID: FAB914DDC2F180EB
8 changed files with 112 additions and 551 deletions

View file

@ -1,17 +1,23 @@
[package]
name = "rust-template"
name = "{{project-name}}"
version = "0.1.0"
edition = "2021"
description = "A template for rust projects"
authors = ["DavidOnTop <me@davidon.top>"]
description = "{{project-name}}"
authors = ["{{authors}}"]
readme = "README.md"
documentation = "https://docs.rs/rust-template"
license = "MIT"
repository = "git@github.com:davidon-top/rust-template.git"
documentation = "https://docs.rs/{{project-name}}"
license = "{{license}}"
repository = "git@github.com:{{username}}/{{project-name}}.git"
[dependencies]
{% if serde %}
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
{% endif %}
{% if tracing %}
tracing = "0.1"
tracing-subscriber = "0.3"
{% endif %}
{% if async %}
tokio = { version = "1.0", features = ["full"] }
{% endif %}