-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (54 loc) · 1.36 KB
/
Makefile
File metadata and controls
73 lines (54 loc) · 1.36 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
# Raya VM Makefile
.PHONY: help build test bench clean fmt lint doc
help:
@echo "Raya VM Development Commands"
@echo ""
@echo " make build - Build all crates"
@echo " make test - Run all tests"
@echo " make bench - Run benchmarks"
@echo " make fmt - Format code"
@echo " make lint - Run clippy"
@echo " make doc - Generate documentation"
@echo " make clean - Clean build artifacts"
@echo " make check - Run format, lint, and test"
@echo ""
build:
cargo build --workspace
build-release:
cargo build --workspace --release
test:
cargo test --workspace --verbose
test-doc:
cargo test --workspace --doc
bench:
cargo bench --workspace
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
lint:
cargo clippy --workspace --all-targets -- -D warnings
doc:
cargo doc --workspace --no-deps --open
clean:
cargo clean
check: fmt-check lint test
@echo "✓ All checks passed!"
install:
cargo install --path crates/raya-cli
@echo "✓ Installed 'raya' command"
@echo ""
@echo "Try: raya --help"
# Development targets
dev-vm:
cargo watch -x 'build -p raya-core'
dev-cli:
cargo watch -x 'run -p raya-cli'
# Benchmark-specific targets
bench-vm:
cargo bench -p raya-core
bench-bytecode:
cargo bench -p raya-bytecode
# Coverage
coverage:
cargo tarpaulin --workspace --out Html --output-dir coverage/