Files
bilibili-lv6-hardcore-main/justfile
T
RainNight-PrincessHighness 82d6c724e3 Please enter the commit message for your changes. Lines starting
with '' will be ignored, and an empty message aborts the commit.

 On branch master

 Initial commit

 Changes to be committed:
	new file:   .gitignore
	new file:   Cargo.lock
	new file:   Cargo.toml
	new file:   LICENSE
	new file:   README.md
	new file:   justfile
	new file:   src/adb.rs
	new file:   src/answerer.rs
	new file:   src/context.rs
	new file:   src/logging.rs
	new file:   src/main.rs
	new file:   src/page.rs
	new file:   src/utils.rs
2026-10-18 10:18:23 +08:00

44 lines
959 B
Makefile

alias c := check
alias b := build
alias br := build-release
alias bm := build-musl
alias u := update
alias tu := tree-unchanged
default:
@just --list --justfile {{justfile()}}
check:
@cd '{{justfile_directory()}}'
cargo check
fix:
@cd '{{justfile_directory()}}'
git stage .
cargo fmt
git stage .
cargo fix --allow-staged
cargo clippy --fix --allow-dirty
cargo clippy -- -D warnings
cargo build
build:
@cd '{{justfile_directory()}}'
cargo build --release
build-release:
@cd '{{justfile_directory()}}'
cargo build --release
build-musl:
@cd '{{justfile_directory()}}'
cargo build --target x86_64-unknown-linux-musl --release
update:
@cd '{{justfile_directory()}}'
cargo update --verbose
tree-unchanged:
@cd '{{justfile_directory()}}'
cargo update --verbose 2>&1 | grep -P ' Un\w+ ' | grep -oP '\w+\s+v\d+(\.\d+){2}' | sed 's/ v/@/' | xargs -r -t -n1 cargo tree --invert