-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
45 lines (36 loc) · 890 Bytes
/
justfile
File metadata and controls
45 lines (36 loc) · 890 Bytes
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
# Lists all available recipes
default:
just --list
# Build all executables
[group('Nix')]
build:
nix build
[group('Rust')]
clippy:
cargo clippy
# Run Bitcoind
[group('Bitcoin')]
bitcoind *ARGS:
bitcoind -regtest -datadir=.datadir {{ARGS}}
# Run Bitcoin-cli
[group('Bitcoin')]
bcli *ARGS:
bitcoin-cli -regtest -datadir=.datadir {{ARGS}}
# Run (with cargo) roxyd
[group('Roxy')]
roxyd *ARGS:
RUST_BACKTRACE=1 RUST_LOG=debug cargo run --bin roxyd -- -d --network=regtest {{ARGS}}
# Run (with cargo) roxy-cli
[group('Roxy')]
rcli *ARGS:
RUST_BACKTRACE=1 RUST_LOG=debug cargo run --bin roxy-cli -- {{ARGS}}
# Run rust formatter
[group('Rust')]
format:
cargo fmt
# Run pre-commit hooks on all files, including autoformatting
pre-commit-all:
pre-commit run --all-files
# Run 'bacon' to run the project (auto-recompiles)
watch *ARGS:
bacon --job run -- roxyd -- {{ ARGS }}