Tunay ENGİN

Replay-Diff for Rust APIs: reproduce prod bugs locally in seconds

by

Today I’m shipping RustAPI v0.1.300 with a new flagship feature: Replay (Time-Travel Debugging) — a complete Record → Replay → Diff system for HTTP requests.

Why it matters
When a bug only happens in production, “try to reproduce it” becomes the bottleneck. With Replay, you can record real requests, replay them locally or in staging, and diff the new response vs the recorded one — instantly.

What’s included in v0.1.300

  • ReplayLayer middleware for automatic request/response recording

  • Stores: InMemoryReplayStore + FileSystemReplayStore

  • Admin HTTP routes to list, replay, and diff entries

  • ReplayClient for programmatic replay testing

  • Security: disabled by default, bearer token required, sensitive header/body redaction, configurable TTL + cleanup via RetentionJob

  • CLI: cargo-rustapi replay commands (list/show/run/diff/delete)

Install the CLI:
cargo install cargo-rustapi --features replay

If you’re building APIs that power agents / real-time systems and you want FastAPI-like DX with Rust performance, I’d love your feedback 🙏

2 views

Add a comment

Replies

Be the first to comment