just: cleanup and a run recipe
This commit is contained in:
parent
a8bbb068a2
commit
5109ded804
1 changed files with 12 additions and 6 deletions
18
justfile
18
justfile
|
@ -1,9 +1,19 @@
|
|||
set shell := ["/usr/bin/env", "bash", "-euo", "pipefail", "-c"]
|
||||
|
||||
export OTEL_SERVICE_NAME := "my-program"
|
||||
|
||||
[private]
|
||||
default:
|
||||
@just --choose
|
||||
|
||||
# Run
|
||||
run $RUST_LOG="debug":
|
||||
nix run
|
||||
|
||||
# Run local development
|
||||
dev:
|
||||
watchexec --clear --restart --stop-signal INT --debounce 300ms -- just run
|
||||
|
||||
# Run all tests
|
||||
check:
|
||||
nix flake check
|
||||
|
@ -17,7 +27,7 @@ fmt:
|
|||
nix fmt
|
||||
|
||||
# Update all dependencies
|
||||
update: update-nix-pkgs update-rust-deps
|
||||
update: update-nix update-rust-deps
|
||||
|
||||
# Update rust dependencies
|
||||
update-rust-deps:
|
||||
|
@ -25,13 +35,9 @@ update-rust-deps:
|
|||
cargo update --recursive
|
||||
|
||||
# Update nix flake packages
|
||||
update-nix-pkgs:
|
||||
update-nix:
|
||||
nix flake update
|
||||
|
||||
# Find unused dependencies with cargo machete
|
||||
machete:
|
||||
cargo machete
|
||||
|
||||
# Run local development
|
||||
dev $OTEL_SERVICE_NAME="my-program" $RUST_LOG="debug":
|
||||
watchexec --clear --restart --stop-signal INT --debounce 300ms -- nix run .
|
||||
|
|
Loading…
Reference in a new issue