about summary refs log tree commit diff stats
path: root/build/rust/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/rust/update.sh')
-rwxr-xr-xbuild/rust/update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/rust/update.sh b/build/rust/update.sh
new file mode 100755
index 0000000..a0a029f
--- /dev/null
+++ b/build/rust/update.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+nix flake update
+
+[ "$1" = "upgrade" ] && cargo upgrade
+cargo update