6babaa0166
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
635 B
Makefile
24 lines
635 B
Makefile
# Build provider components and copy them where the server looks.
|
|
build-components:
|
|
cargo build --release --target wasm32-wasip2 -p whoareyou-provider-hitta
|
|
mkdir -p components
|
|
cp target/wasm32-wasip2/release/whoareyou_provider_hitta.wasm components/hitta.wasm
|
|
|
|
# Full build: components first, then the server.
|
|
build: build-components
|
|
cargo build --release
|
|
|
|
# All tests (the integration test needs the built component).
|
|
test: build-components
|
|
cargo test --workspace
|
|
|
|
# Run the service locally.
|
|
run: build-components
|
|
cargo run -p whoareyou-server
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|
|
|
|
lint:
|
|
cargo clippy --workspace
|