forked from rust-bitcoin/rust-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (36 loc) · 1.04 KB
/
justfile
File metadata and controls
47 lines (36 loc) · 1.04 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
alias ulf := update-lock-files
_default:
@just --list
# Install necessary dev tools on system.
[group('system')]
tools:
@{{justfile_directory()}}/contrib/ensure-maintainer-tools.sh
# Install workspace toolchains.
[group('system')]
@toolchains: tools
RBMT_LOG_LEVEL=quiet cargo rbmt toolchains > /dev/null
# Setup rbmt and run with given args.
@rbmt *args: toolchains
RBMT_LOG_LEVEL=quiet cargo rbmt {{args}}
# Format workspace.
@fmt: (rbmt "fmt")
# Check for API changes.
check-api: (rbmt "api")
# Update the recent and minimal lock files.
@update-lock-files: (rbmt "lock")
# Query the current API.
[group('scripts')]
@query-api crate command:
{{justfile_directory()}}/contrib/api.sh $1 $2
# Install githooks.
[group('scripts')]
githooks-install:
{{justfile_directory()}}/contrib/copy-githooks.sh
# Remove githooks.
[group('scripts')]
githooks-remove:
{{justfile_directory()}}/contrib/copy-githooks.sh -r
# Generate a dependency tree for workspace crates.
[group('scripts')]
gen-dep-tree:
{{justfile_directory()}}/contrib/gen-dep-tree.sh