v0.1.201
🚀 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:
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
- New Cookbook Recipe: [Automatic Status Page](https://tuntii.github.io/RustAPI/cookbook/recipes/status_page.html)
- New Example:
examples/status_demo.rs
📦 Improvements
- Enhanced
RustApibuilder with seamless integration for status monitoring middleware. - Added
chronodependency for precise timestamp tracking.