-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
76 lines (60 loc) · 1.44 KB
/
justfile
File metadata and controls
76 lines (60 loc) · 1.44 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Yeet - Development Commands
# Default: list available commands
default:
@just --list
# Run in debug mode
run:
cargo run
# Run in release mode
run-release:
cargo run --release
# Build debug
build:
cargo build
# Build optimized release
build-release:
cargo build --release
# Bump version, commit, tag, and push
release version:
sed -i 's/^version = ".*"/version = "{{version}}"/' Cargo.toml
cargo check
git add Cargo.toml
git commit -m "Bump version to {{version}}"
git tag v{{version}}
git push origin main v{{version}}
# Run all checks (format, lint, test)
check:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
# Format code
fmt:
cargo fmt
# Lint with clippy
lint:
cargo clippy --all-targets -- -D warnings
# Clean build artifacts
clean:
cargo clean
# Install locally
install:
cargo install --path .
# Install to system (requires sudo)
install-system:
cargo build --release
sudo cp target/release/yeet /usr/local/bin/
# Create user config directory with defaults
init-config:
mkdir -p ~/.config/yeet
@echo "Created ~/.config/yeet/"
@echo "Copy defaults/config.toml and defaults/style.css there to customize"
# Watch for changes and rebuild
watch:
cargo watch -x run
# Check binary size
size:
cargo build --release
@ls -lh target/release/yeet | awk '{print "Binary size:", $5}'
# Generate dependency tree
deps:
cargo tree