Download seb/reasoning/Makefile from Snapkitty/Sovereign-Event-Bus: direct link, hf CLI and curl.
- Browser
- Download file 3.73 kB
-
https://huggingface.co/Snapkitty/Sovereign-Event-Bus/resolve/main/seb/reasoning/Makefile
- Command line
-
hf download hf://Snapkitty/Sovereign-Event-Bus/seb/reasoning/Makefile
-
curl -L -o Makefile https://huggingface.co/Snapkitty/Sovereign-Event-Bus/resolve/main/seb/reasoning/Makefile
3.73 kB
| .PHONY: build test clean release demo check fmt clippy doc all help | |
| CARGO ?= cargo | |
| RUST_BACKTRACE ?= 1 | |
| PROFILE ?= release | |
| # Color output | |
| RED := \033[0;31m | |
| GREEN := \033[0;32m | |
| YELLOW := \033[0;33m | |
| NC := \033[0m | |
| help: | |
| "$(GREEN)SEB L6 Reasoning Protocol Build Targets$(NC)" | |
| "" | |
| "$(YELLOW)Building:$(NC)" | |
| " make build Build debug binary" | |
| " make release Build release binary" | |
| " make clean Clean build artifacts" | |
| "" | |
| "$(YELLOW)Testing:$(NC)" | |
| " make test Run all tests" | |
| " make test-unit Run unit tests only" | |
| " make test-doc Run doc tests" | |
| " make coverage Generate test coverage" | |
| "" | |
| "$(YELLOW)Code Quality:$(NC)" | |
| " make check Check code with clippy" | |
| " make fmt Format code with rustfmt" | |
| " make clippy Run clippy linter" | |
| "" | |
| "$(YELLOW)Examples:$(NC)" | |
| " make demo Run multi-agent demo" | |
| "" | |
| "$(YELLOW)Documentation:$(NC)" | |
| " make doc Generate documentation" | |
| " make doc-open Open documentation in browser" | |
| "" | |
| "$(YELLOW)Utilities:$(NC)" | |
| " make all Build, test, check" | |
| " make help Show this help message" | |
| # Build targets | |
| build: | |
| "$(GREEN)Building seb_reasoning (debug)...$(NC)" | |
| @$(CARGO) build | |
| release: | |
| "$(GREEN)Building seb_reasoning (release)...$(NC)" | |
| @$(CARGO) build --release | |
| "$(GREEN)β Release build complete$(NC)" | |
| -lh target/release/libseb_reasoning* | |
| # Testing | |
| test: | |
| "$(GREEN)Running all tests...$(NC)" | |
| =$(RUST_BACKTRACE) $(CARGO) test --all-targets --all-features | |
| "$(GREEN)β All tests passed$(NC)" | |
| test-unit: | |
| "$(GREEN)Running unit tests...$(NC)" | |
| @$(CARGO) test --lib | |
| test-doc: | |
| "$(GREEN)Running doc tests...$(NC)" | |
| @$(CARGO) test --doc | |
| coverage: | |
| "$(YELLOW)Coverage report requires tarpaulin$(NC)" | |
| cargo-tarpaulin > /dev/null || cargo install cargo-tarpaulin | |
| tarpaulin --out Html --output-dir coverage | |
| # Code quality | |
| check: | |
| "$(GREEN)Running cargo check...$(NC)" | |
| @$(CARGO) check --all-targets | |
| "$(GREEN)β Check passed$(NC)" | |
| fmt: | |
| "$(GREEN)Formatting code with rustfmt...$(NC)" | |
| @$(CARGO) fmt --all | |
| fmt-check: | |
| "$(GREEN)Checking code format...$(NC)" | |
| @$(CARGO) fmt --all -- --check | |
| clippy: | |
| "$(GREEN)Running clippy linter...$(NC)" | |
| @$(CARGO) clippy --all-targets --all-features -- -D warnings | |
| "$(GREEN)β Clippy passed$(NC)" | |
| # Examples | |
| demo: | |
| "$(GREEN)Running multi-agent reasoning demo...$(NC)" | |
| @$(CARGO) run --example demo --release | |
| # Documentation | |
| doc: | |
| "$(GREEN)Generating documentation...$(NC)" | |
| @$(CARGO) doc --no-deps --open | |
| doc-open: | |
| @$(CARGO) doc --no-deps --open | |
| # Composite targets | |
| all: check fmt test | |
| "$(GREEN)β All checks passed$(NC)" | |
| verify: fmt-check check test | |
| "$(GREEN)β Verification complete$(NC)" | |
| # Cleaning | |
| clean: | |
| "$(YELLOW)Cleaning build artifacts...$(NC)" | |
| @$(CARGO) clean | |
| -rf coverage/ | |
| "$(GREEN)β Clean complete$(NC)" | |
| # CI/CD target | |
| ci: verify release | |
| "$(GREEN)β CI pipeline complete$(NC)" | |
| # Development watch (requires cargo-watch) | |
| watch: | |
| cargo-watch > /dev/null || (echo "$(YELLOW)Installing cargo-watch...$(NC)" && cargo install cargo-watch) | |
| watch -x test | |
| # Bench target (future) | |
| bench: | |
| "$(YELLOW)Benchmarks not yet configured$(NC)" | |
| @$(CARGO) bench 2>/dev/null || echo "Use --bench to run" | |
| .DEFAULT_GOAL := help | |