Skip to content

feat: Add Rust Actix + PostgreSQL sample app#10

Open
Atul-Chahar wants to merge 2 commits intokeploy:mainfrom
Atul-Chahar:feat/add-actix-postgres-sample
Open

feat: Add Rust Actix + PostgreSQL sample app#10
Atul-Chahar wants to merge 2 commits intokeploy:mainfrom
Atul-Chahar:feat/add-actix-postgres-sample

Conversation

@Atul-Chahar
Copy link

@Atul-Chahar Atul-Chahar commented Feb 4, 2026

📝 Description

This PR adds a new sample application for Rust using the Actix-web framework and PostgreSQL. This sample demonstrates how to seamlessly integrate Keploy with a Rust application to generate test cases and data mocks.

This serves as the codebase for the upcoming Actix + Postgres Quickstart documentation.

🛠️ Changes

  • New Sample App: Added rust-actix-postgres/ directory.
  • Application Logic: Simple CRUD API for managing "Users" in src/main.rs.
  • Infrastructure:
    • Dockerfile for containerizing the Rust app.
    • docker-compose.yml for orchestrating the App + DB.
  • Keploy Config: Added keploy.yml for recording/testing configuration.
  • Dependency Lock: Added Cargo.lock to ensure reproducible builds for all users.

📊 File Stats Note

This PR includes 2,500+ lines of additions.

Note to Reviewers: The majority of these lines (~2,782) come from Cargo.lock. This file is intentionally included to pin dependency versions, ensuring the sample works reliably for every user regardless of future crate updates. This follows the standard practice seen in other samples (e.g., CRUD-rust-mongo).

🧪 How to Test

Option 1: Docker (Recommended)

screenrecording-2026-02-02_22-40-49.mp4

Option 2: Locally

screenrecording-2026-01-29_19-47-48.mp4

Signed-off-by: Atul Chahar <chaharatul92@gmail.com>
Signed-off-by: Atul Chahar <chaharatul92@gmail.com>
Copy link
Member

@officialasishkumar officialasishkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants