-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
50 lines (42 loc) · 1.42 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
init:
sed -i '' 's#rust-learn-days/template#rust-learn-days/{{project-name}}#g' cliff.toml
git init
git add .
git commit -m "init"
git branch -M main
git remote add origin git@github.com:rust-learn-days/{{project-name}}.git
pip install pre-commit
cargo install --locked cargo-deny
cargo install typos-cli
cargo install git-cliff
cargo install cargo-nextest --locked
pre-commit install
install-cross:
cargo install cross --git https://github.com/cross-rs/cross
build:
rustup target add ${target}
cargo build --target ${target}
cross-build:
rustup target add ${target}
cross build --target ${target}
cross-build-release:
rustup target add ${target}
cross build --release --target ${target}
mkdir -p output/${target}
cp target/${target}/release/{{project-name}} output/${target}/{{project-name}}
cd output/${target} && tar -zcvf {{project-name}}-${target}.tar.gz {{project-name}}
build-release:
rustup target add ${target}
cargo build --release --target ${target}
mkdir -p output/${target}
cp target/${target}/release/{{project-name}} output/${target}/{{project-name}}
cd output/${target} && tar -zcvf {{project-name}}-${target}.tar.gz {{project-name}}
changelog:
git-cliff --config cliff.toml > CHANGELOG.md
line:
tokei .
check:
cargo check
cargo fmt -- --check
cargo deny check -d
cargo nextest run --all-features