-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 721 Bytes
/
Makefile
File metadata and controls
49 lines (36 loc) · 721 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
46
47
48
# Makefile for Guardian Agent (Rust)
.PHONY: build build-release build-python test clean run docker-build
# Build debug version
build:
cargo build
# Build release version
build-release:
cargo build --release --features server
# Build Python bindings
build-python:
cargo build --release --features python
# Run tests
test:
cargo test
# Clean build artifacts
clean:
cargo clean
# Run server
run: build-release
./target/release/guardian
# Build Docker image
docker-build:
docker build -t guardian:latest .
# Run Docker container
docker-run: docker-build
docker run -p 8080:8080 guardian:latest
# Format code
fmt:
cargo fmt
# Check code
check:
cargo check
cargo clippy
# Benchmark
bench:
cargo bench