diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-11 09:06:37 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-11 09:06:37 +0200 |
commit | 3584d8ecaa996f884b0cf2ae0b2c157a03a6c47c (patch) | |
tree | 172054b5abce6d8df955f53a55a893c3d5ff5431 | |
parent | feat(common/init): Add basic handling of licenses (diff) | |
download | flake-templates-3584d8ecaa996f884b0cf2ae0b2c157a03a6c47c.tar.gz flake-templates-3584d8ecaa996f884b0cf2ae0b2c157a03a6c47c.zip |
feat(templates/rust/Cargo.toml): Add the required meta-data for `crates.io`
-rwxr-xr-x | common/files/init | 1 | ||||
-rw-r--r-- | templates/rust/Cargo.toml | 8 |
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] |