docs: add justfile and rewrite README/CLAUDE.md for service architecture
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user