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-06-11 08:17:24 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 08:17:24 +0200
commit52a2e385bd5fcc94a5cc2fce780e24b904499dba (patch)
treea67d5d942a0bce496784dfb676867b806c3f2e79 /templates/rust
parentfeat(templates/latex): Name the `main.tex` file after the project (diff)
downloadflake-templates-52a2e385bd5fcc94a5cc2fce780e24b904499dba.tar.gz
flake-templates-52a2e385bd5fcc94a5cc2fce780e24b904499dba.zip
fix(templates/rust/update.sh): Frist `upgrade` then `update`
`cargo upgrade` raises the update boundaries in `Cargo.toml`, whilst
`cargo update` just fetches the newest version (that conform to the
boundaries) for `Cargo.lock`.
Diffstat (limited to '')
-rwxr-xr-xtemplates/rust/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/rust/update.sh b/templates/rust/update.sh
index b34dabf..a0a029f 100755
--- a/templates/rust/update.sh
+++ b/templates/rust/update.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env sh
 
 nix flake update
-cargo update
+
 [ "$1" = "upgrade" ] && cargo upgrade
+cargo update