-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.rust.yml
More file actions
105 lines (87 loc) · 2.38 KB
/
Taskfile.rust.yml
File metadata and controls
105 lines (87 loc) · 2.38 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3"
run: once
tasks:
format:
desc: Format Rust sources with rustfmt
cmds:
- cargo fmt --all
fmt:check:
desc: Verify Rust formatting without modifying files
cmds:
- cargo fmt --all -- --check
clippy:
desc: Run clippy lint checks (allow warnings)
cmds:
- cargo clippy --all-targets --all-features
clippy:strict:
desc: Run clippy with warnings treated as errors
cmds:
- cargo clippy --all-targets --all-features -- -D warnings
check:
desc: Run cargo check across the workspace
cmds:
- cargo check --all
test:
desc: Run Rust unit and integration tests
cmds:
- cargo test --all
test:release:
desc: Run Rust tests with release optimizations
cmds:
- cargo test --all --release
build:
desc: Build all Rust targets (debug)
cmds:
- cargo build --all
build:release:
desc: Build all Rust targets (release)
cmds:
- cargo build --all --release
install:
desc: Build and install the renamify CLI to ~/.cargo/bin
aliases: [":install"]
cmds:
- cargo install --path renamify-cli
doc:
desc: Build Rust documentation
cmds:
- cargo doc --no-deps --all-features
lint:
desc: Run Rust formatting, linting, and spelling checks
deps: [fmt:check, clippy]
cmds:
- taplo format --check *.toml */*.toml
lint:strict:
desc: Run Rust linting with clippy warnings treated as errors
deps: [fmt:check, clippy:strict]
cmds:
- taplo format --check *.toml */*.toml
lint:fix:
desc: Apply Rust formatting, clippy fixes, and whitespace cleanup
cmds:
- cargo fmt --all
- cargo clippy --all-targets --all-features --fix --allow-dirty
- taplo format *.toml */*.toml
clean:
desc: Clean Rust build artifacts and temporary state
cmds:
- cargo clean
- rm -rf target/
- rm -rf .renamify/
install-tools:
desc: Install shared Rust developer tooling
cmds:
- cargo install taplo-cli typos-cli lefthook
- lefthook install
bindings:deps:
desc: Install Node tooling used for formatting generated bindings
run: once
dir: renamify-core
cmds:
- pnpm install --frozen-lockfile
bindings:format:
desc: Format generated TypeScript bindings in renamify-core
deps: [bindings:deps]
dir: renamify-core
cmds:
- pnpm format-bindings