From 10dcacab1f21e80a7ccdb9b44880ca1958c569cd Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Tue, 14 Jun 2022 21:34:22 -0600 Subject: [PATCH] Updated to the latest version of tmpl --- template.toml | 8 -------- template/Cargo.toml | 2 +- tmpl.yaml | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 9 deletions(-) delete mode 100644 template.toml create mode 100644 tmpl.yaml diff --git a/template.toml b/template.toml deleted file mode 100644 index 133b519..0000000 --- a/template.toml +++ /dev/null @@ -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" - diff --git a/template/Cargo.toml b/template/Cargo.toml index 74fa97e..923763e 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -2,7 +2,7 @@ name = "{{project_name}}" version = "{{version}}" 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 diff --git a/tmpl.yaml b/tmpl.yaml new file mode 100644 index 0000000..478a8a5 --- /dev/null +++ b/tmpl.yaml @@ -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