RustAPI

RustAPI

A Rust API framework designed for AI-first development

3 followers

RustAPI is an open-source Rust API framework built to make AI-generated backend services readable, composable, and production-ready. It removes boilerplate friction from Actix/Axum and is optimized for SSE, MCP, and LLM workflows.
RustAPI gallery image
Free
Launch Team
Anima - Vibe Coding for Product Teams
Build websites and apps with AI that understands design.
Promoted

What do you think? …

Tunay ENGİN
Maker
📌
Hey Product Hunt 👋 I built RustAPI because AI struggles with Rust’s complexity when generating APIs. Existing frameworks like Actix and Axum are powerful, but they force AI (and developers) to fight excessive boilerplate and rigid architectures. RustAPI is designed as an AI-first API framework, clean, composable, and readable for both humans and LLMs. I’d love feedback from Rust devs, backend engineers, and anyone experimenting with AI-generated code. Thanks for checking it out 🚀
Tunay ENGİN
🎯 Product Hunt Update

🚀 RustAPI 0.0.6 - Our Biggest Release Ever!

We just dropped 10,674 lines of new code with 3 complete new crates!

🆕 THREE NEW CRATES:
• rustapi-ws - Full WebSocket support
• rustapi-view - Tera template engine
• cargo-rustapi - CLI tool with scaffolding

✨ MAJOR FEATURES:
• Real-time bidirectional communication
• Server-side rendering with templates
• Project scaffolding (4 templates)
• Static file serving + compression
• Multipart file uploads
• Traffic analytics

🎯 WHY RUSTAPI:
• WebSocket in 10 lines of code
• Zero-config with auto-discovery
• 50-58% token savings with TOON format
• Production-ready from day one
• CLI tool for rapid development

📊 PHASES COMPLETE:
✅ Phase 8: Advanced HTTP
✅ Phase 9: Ecosystem

Check it out and let us know what you think! 🔥

#RustLang #WebDev #WebSocket #FullStack
Tunay ENGİN

🎉 RustAPI v0.1.8 - Performance & Production Release

🚀 Performance Improvements

- SIMD-JSON Integration: Optional 2-4x faster JSON parsing

- Benchmarking Suite: Comprehensive performance tests for middleware, extractors, and WebSockets

- Optimized Path Parameters: Stack allocation for ≤4 params (zero heap allocation)

- Smart JSON Buffers: Pre-allocated response buffers reduce reallocations

✨ New Features

- Interceptor System: Lightweight request/response modification

- Health Check API: Component-level monitoring with degraded/unhealthy states

- Streaming Body: Native async streaming support for large payloads

- Enhanced CLI: `cargo-rustapi` with watch, doctor, and add commands

📚 Examples

- Microservices (advanced patterns)

- Event Sourcing

- Serverless Lambda integration

🔧 Developer Experience

- OpenAPI path param type inference (UUID, integer detection)

- Automated crates.io publishing workflow

- New crates: `rustapi-testing`, `rustapi-jobs`, `rustapi-bench`

📊 Stats

- 151 files changed (+29,025 | -313 lines)

- 22 commits of focused performance work

- 3 new workspace crates

Full changelog: https://github.com/Tuntii/RustAPI/pull/15

Tunay ENGİN
# RustAPI v0.1.13 Release Notes 🚀

**Release Date:** January 19, 2026

---

## 🛡️ New Feature: CSRF Protection

RustAPI now includes built-in **Cross-Site Request Forgery (CSRF) protection** using the industry-standard Double-Submit Cookie pattern.

### Quick Start

```rust
use rustapi_rs::prelude::*;
use rustapi_extras::csrf::{CsrfConfig, CsrfLayer, CsrfToken};

#[rustapi_rs::get("/form")]
async fn show_form(token: CsrfToken) -> Html<String> {
    Html(format!(r#"
        <form method="POST" action="/submit">
            <input type="hidden" name="_csrf" value="{}" />
            <button>Submit</button>
        </form>
    "#, token.as_str()))
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
    let csrf = CsrfConfig::new()
        .cookie_name("csrf_token")
        .header_name("X-CSRF-Token");

    RustApi::new()
        .layer(CsrfLayer::new(csrf))
        .mount(show_form)
        .run("0.0.0.0:8080")
        .await
}
```

### Features

- ✅ **Double-Submit Cookie Pattern** — Industry standard CSRF protection
- ✅ **CsrfToken Extractor** — Access tokens in handlers
- ✅ **Configurable** — Custom cookie/header names, SameSite policy, secure flags
- ✅ **Frontend Ready** — Works with JavaScript/AJAX and HTML forms
- ✅ **Zero Config Defaults** — Secure by default

---

## 📚 Documentation Updates

- New **CSRF Protection Recipe** in the Cookbook
- Updated **rustapi-extras** documentation with CSRF examples
- Added CSRF to README feature table

---

## 🔧 Bug Fixes

- Fixed clippy lint errors in `rustapi-macros`
- Fixed test imports in `rustapi-extras` CSRF module
- Corrected publish order in `smart_publish.ps1` script

---

## 📦 Installation

```toml
[dependencies]
rustapi-rs = { version = "0.1.13", features = ["csrf"] }
```

Or with all security features:

```toml
rustapi-rs = { version = "0.1.13", features = ["jwt", "cors", "csrf", "rate-limit"] }
```

---

## 🔗 Links

- [Documentation](https://docs.rs/rustapi-rs)
- [GitHub](https://github.com/Tuntii/RustAPI)
- [Cookbook](https://tuntii.github.io/RustAPI...)

---

**Full Changelog:** [v0.1.12...v0.1.13](https://github.com/Tuntii/RustAP...)
Tunay ENGİN

🚀 Release Notes: RustAPI v0.1.200

"Visualizing Health: The Status Page Update"

We are thrilled to announce RustAPI v0.1.200! This milestone release focuses on developer experience and observability, introducing a powerful new way to monitor your API just by upgrading.

✨ New Feature: Built-in Status Page

You can now instantly generate a professional Status Page for your API. No external services, no complex configuration files—just one line of code.

It provides a real-time view of:

  • System Uptime & Global Stats

  • Per-Endpoint Success Rates (instantly spot failing routes)

  • Average Latency (identify bottlenecks)

How to use it:

Rust

use rustapi_rs::prelude::*;

#[rustapi::main]
async fn main() -> Result<()> {
    RustApi::auto()
        .status_page() // 🚀 Instant observability
        .run("127.0.0.1:8080")
        .await
}

Visit /status on your running server to see it in action.

📚 Documentation

📦 Improvements

  • Enhanced RustApi builder with seamless integration for status monitoring middleware.

  • Added chrono dependency for precise timestamp tracking.