Tunay ENGİN

RustAPI v0.1.333 is out — Quick Wins + Must-Have Completion

by

RustAPI is a Rust web framework inspired by FastAPI—but built for a modern, native Rust runtime with first-class OpenAPI 3.1 and validation.

This release is a focused “quick wins” iteration that closes several must-have gaps across runtime, WebSockets, OpenAPI correctness, and docs—while also tightening the dependency surface.

⭐ What’s new in v0.1.333

  • True dual-stack runtime (done): RustApi::run_dual_stack now runs HTTP/1.1 (TCP) and HTTP/3 (QUIC/UDP) simultaneously.

  • WebSocket permessage-deflate (done): real parsing + parameter negotiation for Sec-WebSocket-Extensions.

  • OpenAPI ref integrity coverage upgraded: traversal validation now covers response / requestBody / header / callback paths + tests.

  • Async validation context from app state: AsyncValidatedJson now respects state-provided ValidationContext (with verified coverage).

  • Docs aligned with reality: architecture docs synced to OpenAPI 3.1 + v2-native validation direction.

  • Dependency footprint reduced: trimmed unused / overly broad dependencies & feature sets to reduce lockfile surface.

✅ Validation checklist

  • cargo test -p rustapi-openapi

  • cargo test -p rustapi-ws

  • cargo test -p rustapi-core test_async_validated_json_with_state_context

  • cargo check -p rustapi-core --features http3

🔧 Implementation notes

  • crates/rustapi-core/src/app.rs: run_dual_stack

  • crates/rustapi-core/src/server.rs: Server::from_shared

  • crates/rustapi-ws/src/upgrade.rs: permessage-deflate negotiation

  • crates/rustapi-openapi/src/tests.rs: traversal coverage tests

  • docs/ARCHITECTURE.md + cookbook + openapi README: doc alignment

🧱 Commits

  • ca238ac chore(quick-wins): reduce dependency surface + align native OpenAPI docs

  • dcb0e8b feat(core/ws/openapi): complete quick-wins must-haves

🎯 Who is this for?

  • Rust devs who want FastAPI-like ergonomics with Rust performance

  • Teams shipping APIs that need correct OpenAPI 3.1 + strong validation

  • Anyone experimenting with HTTP/3/QUIC in real services

If you care about modern API ergonomics in Rust, I’d love your feedback + an upvote 🙌

2 views

Add a comment

Replies

Be the first to comment