about summary refs log tree commit diff stats
path: root/templates/rust/cog.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 18:22:20 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:59:58 +0200
commit43655648a602b5b21e10dc69726d0d351bec8056 (patch)
tree39a2d11066355556006e7f61cd8cf1044377a21b /templates/rust/cog.toml
parentrefactor(rust): Move to template dir (diff)
downloadflake-templates-43655648a602b5b21e10dc69726d0d351bec8056.tar.gz
flake-templates-43655648a602b5b21e10dc69726d0d351bec8056.zip
feat(rust): Update to my SOTA
Diffstat (limited to 'templates/rust/cog.toml')
-rw-r--r--templates/rust/cog.toml24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/rust/cog.toml b/templates/rust/cog.toml
index 0756943..2646f07 100644
--- a/templates/rust/cog.toml
+++ b/templates/rust/cog.toml
@@ -1,14 +1,14 @@
-from_latest_tag = false
 tag_prefix = "v"
+branch_whitelist = ["main", "prime"]
 ignore_merge_commits = false
-pre_package_bump_hooks = []
-post_package_bump_hooks = []
 
-branch_whitelist = ["prime"]
+[commit_types]
 
 pre_bump_hooks = [
-  "nix build",                     # verify the project builds
-  "cargo set-version {{version}}", # bump version in Cargo.toml
+  "nix flake check",                     # verify the project builds
+  "./scripts/renew_copyright_header.sh", # update the license header in each file
+  "cargo set-version {{version}}",       # bump version in Cargo.toml
+  "nix fmt",                             # format
 ]
 post_bump_hooks = [
   "git push",
@@ -16,12 +16,12 @@ post_bump_hooks = [
   "git push origin v{{version}}", # push the new tag to origin
 ]
 
-[commit_types]
+[bump_profiles]
 
 [changelog]
 path = "NEWS.md"
-authors = []
-
-[bump_profiles]
-
-[packages]
+template = "remote"
+remote = "TODO"
+repository = "TODO"
+owner = "TODO"
+authors = [{ signature = "Benedikt Peetz", username = "bpeetz" }]