rust/justfile

20 lines
424 B
Makefile
Raw Permalink Normal View History

image := "git.kemitix.net/kemitix/rust:test"
2025-01-14 20:09:30 +00:00
build:
docker build . -t {{ image }}
test: build
docker run --rm -v $PWD:/app/ {{ image }} cargo test
2025-01-14 20:59:32 +00:00
clippy: build
docker run --rm -v $PWD:/app/ {{ image }} cargo clippy
2025-01-14 20:52:01 +00:00
run: build
docker run --rm -v $PWD:/app/ {{ image }} cargo run
2025-01-16 08:25:16 +00:00
fmt: build
docker run --rm -v $PWD:/app/ {{ image }} cargo fmt
shell: build
docker run --rm -it -v $PWD:/app/ {{ image }} bash