Updated to the latest version of tmpl

main
Joey Hines 2022-06-14 21:34:22 -06:00
parent e7f18237a4
commit 10dcacab1f
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
3 changed files with 17 additions and 9 deletions

View File

@ -1,8 +0,0 @@
# template.toml
# Write any template args here to prompt the user for, giving any defaults/options as applicable
project_name = "project"
version = "0.1.0"
author = "Joey Hines"
author_email = "joey@ahines.net"

View File

@ -2,7 +2,7 @@
name = "{{project_name}}" name = "{{project_name}}"
version = "{{version}}" version = "{{version}}"
authors = ["{{author}} <{{author_email}}>"] authors = ["{{author}} <{{author_email}}>"]
edition = "2018" edition = "{{rust_edition}}"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

16
tmpl.yaml 100644
View File

@ -0,0 +1,16 @@
prompts:
- id: project_name
label: Rust Project Name
default: project
- id: version
label: Version
default: "0.1.0"
- id: author
label: Auhtor
default: Joey Hines
- id: author_email
label: Author Email
default: joey@ahines.net
- id: rust_edition
label: Rust Edition
default: 2021