forked from databricks/zerobus-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.1 KB
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 1.1 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
# Makefile for zerobus-sdk-rs
.PHONY: help build build-release clean fmt lint check test build-jni build-jni-test build-ffi
help:
@echo "Available targets:"
@echo " make build - Build the project for debugging"
@echo " make build-release - Build the project for release"
@echo " make build-jni - Build JNI library for Java SDK"
@echo " make build-ffi - Build C FFI library for language bindings"
@echo " make clean - Remove build artifacts"
@echo " make fmt - Format code with rustfmt"
@echo " make lint - Run linting with clippy"
@echo " make check - Run all checks (fmt and lint)"
@echo " make test - Run tests for all workspace packages"
build:
cargo build --workspace
build-release:
cargo build --release --workspace
build-jni:
cargo build --release -p zerobus-jni
build-jni-test:
cargo build --release -p zerobus-jni --features test-helpers
build-ffi:
cargo build --release -p zerobus-ffi
clean:
cargo clean
fmt:
cargo fmt --all
lint:
cargo clippy --all -- -D warnings
check: fmt lint
test:
cargo test --workspace