-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (39 loc) · 1.06 KB
/
Copy pathJustfile
File metadata and controls
52 lines (39 loc) · 1.06 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
manifest := "--manifest-path mcp-server/Cargo.toml"
# Run cargo check on mcp-server
check:
cargo check {{manifest}} --all-targets
# Build mcp-server
build:
cargo build {{manifest}} --all-targets
# Run clippy with pedantic/nursery warnings
clippy:
cargo clippy {{manifest}} --all-targets -- -W clippy::nursery -W clippy::pedantic
# Format all Rust code
fmt:
cargo fmt {{manifest}} --all
# Check formatting without modifying
fmt-check:
cargo fmt {{manifest}} --all -- --check
# Run tests
test:
cargo test {{manifest}}
# Run nix flake check (clippy + fmt + tests)
nix-check:
nix flake check
# Build via nix
nix-build:
nix build
# Run the setup script
setup:
./setup
# Run integration tests (requires lspmux + rust-analyzer binaries)
integration-test:
cargo test {{manifest}} -- --ignored
# Lint all shell scripts
shellcheck:
shellcheck setup bin/* hooks/scripts/*.sh
# Build the assembled plugin via nix
nix-plugin:
nix build .#plugin -o result-plugin
# Pre-push: check + clippy + fmt + test
pre-push: check clippy fmt-check test