about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcommon/files/init1
-rw-r--r--templates/rust/Cargo.toml8
2 files changed, 8 insertions, 1 deletions
diff --git a/common/files/init b/common/files/init
index dfdf8c6..dd75fc3 100755
--- a/common/files/init
+++ b/common/files/init
@@ -66,6 +66,7 @@ prompt OWNER "The name of owner of the repository" "$AUTHOR_NAME"
 prompt DESCRIPTION "The description of this project" "[can be empty]"
 prompt CURRENT_DATE "The stylized version of the current date" "$(date +'%b %Y')"
 prompt YEAR "The year the work on this has begun (for copyright reasons)" "$(date +'%Y')"
+prompt APPLICATION_SOURCE_CODE_REPOSITORY "The package's source code repository URL" "https://$REMOTE/$OWNER/$REPOSITORY"
 
 # LICENSE.spdx data (source: https://github.com/david-a-wheeler/spdx-tutorial)
 if [ -e ./lpm.toml ]; then
diff --git a/templates/rust/Cargo.toml b/templates/rust/Cargo.toml
index 487c507..dd6c3be 100644
--- a/templates/rust/Cargo.toml
+++ b/templates/rust/Cargo.toml
@@ -3,7 +3,13 @@ name = "%INIT_APPLICATION_NAME"
 description = "%INIT_DESCRIPTION"
 version = "%INIT_APPLICATION_VERSION"
 edition = "2021"
+license = "%INIT_SPDX_LICENSE_IDENTIFER"
+homepage = "%INIT_APPLICATION_HOMEPAGE"
+repository = "%INIT_APPLICATION_SOURCE_CODE_REPOSITORY"
+# TODO
+# categories = [""]
+# keywords = ["", ""]
 
-# 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
 [dependencies]