# p2p-intel — common tasks. # # No Docker target: the stack is pure Rust and the sandbox/CI both build it # directly. Adding a container would only add a second thing to keep in sync. .PHONY: test lint fmt coverage smoke app android ios scan clean test: cargo test --workspace # Proves the two properties CI enforces: no HTTP client and no serde. deps: @cargo tree --workspace -e normal | sed 's/^[^a-zA-Z]*//' | sort -u lint: cargo fmt --all -- --check cargo clippy --workspace --all-targets -- -D warnings fmt: cargo fmt --all # Enforces the floors in tools/test-p2p-coverage.sh. Installs and removes # its own toolchain, so it does not touch your ~/.cargo. coverage: ../../../tools/test-p2p-coverage.sh # Start the app under a virtual X server and fail if it cannot. # Catches a broken script_mod! block, which cargo build cannot: the widget # tree is parsed at runtime. smoke: ../../../tools/test-p2p-app-smoke.sh # Desktop app. Needs the Makepad native libraries: # sudo bash ../../../tools/makepad-native-libs.sh --install app: CARGO_BUILD_JOBS=1 cargo run -p p2p-makepad --bin p2p-intel-app --features ui android: cargo makepad android run -p p2p-makepad --features ui --release ios: cargo makepad ios run -p p2p-makepad --features ui --release # Live scanning lives in the app: networking goes through Makepad's # Cx::http_request, so there is no CLI path to the network any more. scan: app clean: cargo clean