aboutsummaryrefslogtreecommitdiffstats
path: root/templates/rust
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 01:25:44 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 01:25:44 +0200
commitd4dff920790b96db87c9b373d42df046d899cc30 (patch)
tree9e10540a95ccea633e3e2fa70e26df9d2a2777cf /templates/rust
parentfix(templates/c): Make the `makefile` more standards complying (diff)
downloadflake-templates-d4dff920790b96db87c9b373d42df046d899cc30.zip
feat(treewide): Use new `%INIT_` variables
Diffstat (limited to 'templates/rust')
-rw-r--r--templates/rust/.licensure.yml4
-rw-r--r--templates/rust/Cargo.toml3
-rw-r--r--templates/rust/LICENSE.spdx8
-rw-r--r--templates/rust/README.md3
-rw-r--r--templates/rust/cog.toml8
-rw-r--r--templates/rust/flake.nix2
6 files changed, 15 insertions, 13 deletions
diff --git a/templates/rust/.licensure.yml b/templates/rust/.licensure.yml
index 74efd9a..942a96f 100644
--- a/templates/rust/.licensure.yml
+++ b/templates/rust/.licensure.yml
@@ -18,8 +18,8 @@ licenses:
- files: \.tex
ident: CC-BY-SA-4.0
authors:
- - name: Benedikt Peetz
- email: "benedikt.peetz@b-peetz.de"
+ - name: "%INIT_AUTHOR_NAME"
+ email: "%INIT_AUTHOR_EMAIL"
template: |
TODO 2024 - [year] (C) by [name of author]
diff --git a/templates/rust/Cargo.toml b/templates/rust/Cargo.toml
index 6813ae1..86c4efa 100644
--- a/templates/rust/Cargo.toml
+++ b/templates/rust/Cargo.toml
@@ -1,5 +1,6 @@
[package]
-name = "TODO"
+name = "%INIT_APPLICATION_NAME"
+description = "%INIT_DESCRIPTION"
version = "0.1.0"
edition = "2021"
diff --git a/templates/rust/LICENSE.spdx b/templates/rust/LICENSE.spdx
index ecb7d83..72ea9a5 100644
--- a/templates/rust/LICENSE.spdx
+++ b/templates/rust/LICENSE.spdx
@@ -1,7 +1,7 @@
SPDXVersion: SPDX-2.3
DataLicense: CC0-1.0
-Creator: TODO
-PackageName: TODO
-PackageOriginator: TODO
-PackageHomePage: TODO
+Creator: flake template init
+PackageName: %INIT_APPLICATION_NAME
+PackageOriginator: %INIT_APPLICATION_ORIGINATOR
+PackageHomePage: %INIT_APPLICATION_HOME_PAGE
PackageLicenseDeclared: GPL-3.0-or-later
diff --git a/templates/rust/README.md b/templates/rust/README.md
index 5912c16..79f2a41 100644
--- a/templates/rust/README.md
+++ b/templates/rust/README.md
@@ -1,4 +1,5 @@
-# TODO
+# %INIT_APPLICATION_NAME_STYLIZED
+> %INIT_DESCRIPTION
Some text about the project.
diff --git a/templates/rust/cog.toml b/templates/rust/cog.toml
index 4902ede..b4c68e1 100644
--- a/templates/rust/cog.toml
+++ b/templates/rust/cog.toml
@@ -19,7 +19,7 @@ post_bump_hooks = [
[changelog]
path = "NEWS.md"
template = "remote"
-remote = "TODO"
-repository = "TODO"
-owner = "TODO"
-authors = [{ signature = "Benedikt Peetz", username = "bpeetz" }]
+remote = "%INIT_REMOTE"
+repository = "%INIT_REPOSITORY"
+owner = "%INIT_OWNER"
+authors = [{ signature = "%INIT_AUTHOR_NAME", username = "%INIT_OWNER" }]
diff --git a/templates/rust/flake.nix b/templates/rust/flake.nix
index 437b8a9..e6e5dc5 100644
--- a/templates/rust/flake.nix
+++ b/templates/rust/flake.nix
@@ -1,5 +1,5 @@
{
- description = "TODO";
+ description = "%INIT_DESCRIPTION";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";