-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (40 loc) · 1.15 KB
/
Copy pathjustfile
File metadata and controls
52 lines (40 loc) · 1.15 KB
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
51
52
VERSION := `toml get Cargo.toml package.version | jq -r`
export TAG:=`toml get Cargo.toml "package.version" | jq -r .`
# List available commands
_default:
just --choose --chooser "fzf +s -x --tac --cycle"
# Test / watch
test:
cargo watch -x "test -- --nocapture"
# Test including ignored tests
test_all:
cargo test -- --include-ignored
# Generate usage samples
_usage:
cargo run -q -- --help > doc/main.adoc
cargo run -q -- search --help > doc/search.adoc
cargo run -q -- list --help > doc/list.adoc
# Generate documentation
doc: _usage
cargo doc --all-features --no-deps
# Run rustfmt
_fmt:
cargo +nightly fmt --all
# Run clippy
_clippy:
cargo +nightly clippy --all-features --all-targets
_deny:
cargo deny check
# Run checks such as clippy, rustfmt, etc...
check: _clippy _fmt _deny
# Generate the readme as .md
md:
#!/usr/bin/env bash
asciidoctor -b docbook -a leveloffset=+1 -o - README_src.adoc | pandoc --markdown-headings=atx --wrap=preserve -t markdown_strict -f docbook - > README.md
tag:
#!/bin/sh
echo Tagging version v$TAG
git tag "v$TAG" -f
git tag | sort -Vr | head
push_tag:
@git push origin "v$TAG" -f