Skip to content

v0.3.0 - Phase 2 Complete: Migrations, Testing, GraphQL & gRPC

Latest

Choose a tag to compare

@ashishjsharda ashishjsharda released this 14 Dec 14:36
ef01980

πŸŽ‰ Phase 2 Complete!

Added

πŸ—„οΈ Database Migrations Management

  • MigrationConfig for configuring migration behavior
  • connect_and_migrate() for automatic database setup and migration
  • run_migrations() for manual migration control
  • ensure_database_exists() to create databases automatically
  • Integration with sqlx's migration system
  • Support for custom migration paths
  • Automatic migration running on startup (configurable)

πŸ§ͺ Testing Utilities

  • TestClient for easy API endpoint testing
  • TestResponse with assertion helpers
  • Support for authenticated requests in tests
  • Database testing utilities (with db-tests feature)
  • Integration test examples and best practices

πŸ“š Additional Project Templates

  • GraphQL template with async-graphql integration
  • gRPC template with tonic integration
  • Updated CLI to support rapid new myapi --template graphql|grpc

πŸ“– Comprehensive Documentation

  • MIGRATIONS.md - Complete migration guide with best practices
  • TESTING.md - Testing guide with examples and patterns
  • LOCAL_TESTING_GUIDE.md - Step-by-step local testing
  • Updated README with Phase 2 completion status

Changed

  • Updated CLI to support GraphQL and gRPC templates
  • Enhanced project scaffolding with migration support
  • Improved documentation structure

Fixed

  • Database connection handling in test environments

Installation:

cargo install rapid-rs-cli

Quick Start:

rapid new myapi
cd myapi
cargo run

Documentation: https://docs.rs/rapid-rs/0.3.0

All tests passing βœ… | Backward compatible βœ… | Production ready βœ