Skip to content

majiayu000/spellbook / skills/rust-project

rust-project

Unverified

Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.

templates/web-service/Makefile

View on GitHub
.PHONY: build run dev test lint fmt check clean db-create db-migrate db-prepare

APP_NAME = myapp

# Build release binary
build:
	cargo build --release

# Run in development mode
run:
	cargo run

# Run with auto-reload (requires cargo-watch)
dev:
	cargo watch -x run

# Run tests
test:
	cargo test

# Run tests with coverage (requires cargo-tarpaulin)
test-coverage:
	cargo tarpaulin --out Html

# Run clippy linter
lint:
	cargo clippy -- -D warnings

# Format code
fmt:
	cargo fmt

# Check formatting without modifying
fmt-check:
	cargo fmt --check

# Run all checks
check: fmt lint test
	@echo "All checks passed!"

# Clean build artifacts
clean:
	cargo clean

# Update dependencies
upgrade:
	cargo update

# Database commands (requires sqlx-cli)
db-create:
	sqlx database create

db-drop:
	sqlx database drop

db-migrate:
	sqlx migrate run

db-revert:
	sqlx migrate revert

# Prepare SQLx offline mode
db-prepare:
	cargo sqlx prepare

# Help
help:
	@echo "Available commands:"
	@echo "  build        - Build release binary"
	@echo "  run          - Run in development mode"
	@echo "  dev          - Run with auto-reload"
	@echo "  test         - Run tests"
	@echo "  lint         - Run clippy linter"
	@echo "  fmt          - Format code"
	@echo "  check        - Run all checks"
	@echo "  clean        - Clean build artifacts"
	@echo "  db-create    - Create database"
	@echo "  db-migrate   - Run migrations"
	@echo "  db-prepare   - Prepare SQLx offline mode"
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall