about summary refs log tree commit diff stats
path: root/templates/rust
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:44:59 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 00:00:07 +0200
commit2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c (patch)
treed9894056cafdf83fd7edb7b785ac6076cdc177cc /templates/rust
parentrefactor(flake): Move some nix code out of flake.nix (diff)
downloadflake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.tar.gz
flake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.zip
fix(templates): Update already done templates with improvements from new ones
Diffstat (limited to '')
-rw-r--r--templates/rust/.envrc3
-rw-r--r--templates/rust/.licensure.yml7
-rw-r--r--templates/rust/cog.toml2
-rw-r--r--templates/rust/flake.nix2
4 files changed, 11 insertions, 3 deletions
diff --git a/templates/rust/.envrc b/templates/rust/.envrc
index 77f9235..8f9d5d7 100644
--- a/templates/rust/.envrc
+++ b/templates/rust/.envrc
@@ -1,7 +1,8 @@
 use flake || use nix
 watch_file flake.nix
 
-PATH_add ./target/
+PATH_add ./target
+PATH_add ./scripts
 
 if on_git_branch; then
   echo && git status --short --branch &&
diff --git a/templates/rust/.licensure.yml b/templates/rust/.licensure.yml
index 6c8dcfc..e1f5a01 100644
--- a/templates/rust/.licensure.yml
+++ b/templates/rust/.licensure.yml
@@ -144,6 +144,13 @@ comments:
       comment_char: ";;;"
       trailing_lines: 1
 
+  - extensions:
+      - tex
+    commenter:
+      type: line
+      comment_char: "%"
+      trailing_lines: 1
+
   # The extension string "any" is special and so will match any file
   # extensions. Commenter configurations are always checked in the
   # order they are defined, so if any is used it should be the last
diff --git a/templates/rust/cog.toml b/templates/rust/cog.toml
index 2646f07..4902ede 100644
--- a/templates/rust/cog.toml
+++ b/templates/rust/cog.toml
@@ -2,8 +2,6 @@ tag_prefix = "v"
 branch_whitelist = ["main", "prime"]
 ignore_merge_commits = false
 
-[commit_types]
-
 pre_bump_hooks = [
   "nix flake check",                     # verify the project builds
   "./scripts/renew_copyright_header.sh", # update the license header in each file
diff --git a/templates/rust/flake.nix b/templates/rust/flake.nix
index 2e65c7d..437b8a9 100644
--- a/templates/rust/flake.nix
+++ b/templates/rust/flake.nix
@@ -115,6 +115,8 @@
 
           rust_default
           cargo-edit
+
+          licensure
         ];
       };
     });