-
-
Notifications
You must be signed in to change notification settings - Fork 1
0.0.6 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces new crates: rustapi-ws for WebSocket support, rustapi-view for Tera-based template rendering, and cargo-rustapi as a CLI tool for project scaffolding and utilities. Updates workspace and dependencies in Cargo.toml, expands documentation in README.md to cover new features, and adds example projects for WebSocket and template usage. Also includes new modules and features in rustapi-core and rustapi-extras to support these capabilities.
This reverts commit 7ca7a8f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces version 0.0.6 with substantial new functionality for the RustAPI framework, including:
Summary: Adds WebSocket support, server-side template rendering (Tera), static file serving, response compression, multipart form handling, traffic insight middleware, enhanced SSE capabilities, and CLI tooling for project scaffolding.
Key Changes:
- WebSocket support via
rustapi-wscrate with broadcast channels for real-time communication - Template rendering via
rustapi-viewcrate using Tera engine - Static file serving with MIME type detection, caching headers, and security features
- Response compression middleware (gzip, deflate, brotli)
- Multipart/form-data parsing for file uploads
- Traffic insight middleware for request/response analytics
- Enhanced SSE with keep-alive support
- CLI tool (
cargo-rustapi) for project scaffolding
Reviewed changes
Copilot reviewed 64 out of 66 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/websocket/src/main.rs | WebSocket example with echo, JSON, and chat room demonstrations |
| examples/websocket/Cargo.toml | Dependencies for WebSocket example |
| examples/templates/* | Template rendering example with Tera layouts and static files |
| crates/rustapi-ws/* | Complete WebSocket implementation with extractors, streams, messages, and broadcast |
| crates/rustapi-view/* | Template engine with Tera integration, context builders, and view responses |
| crates/rustapi-core/src/static_files.rs | Static file serving with security, MIME detection, and caching |
| crates/rustapi-core/src/multipart.rs | Multipart form parsing for file uploads with security measures |
| crates/rustapi-core/src/middleware/compression.rs | Response compression with gzip/deflate/brotli support |
| crates/rustapi-core/src/sse.rs | Enhanced SSE with keep-alive and helper functions |
| crates/rustapi-extras/src/insight/* | Traffic insight middleware for analytics and monitoring |
| crates/cargo-rustapi/src/templates/* | CLI project templates (minimal, api, web, full) |
| docs/* | Updated documentation for new features |
The PR successfully implements multiple major features with appropriate examples and documentation. The code is well-structured with proper error handling and security considerations.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0.0.6 - 2026-01-05🎉 Major Release - Three New Crates!This is our biggest release yet, adding 10,674 lines across 65 files and introducing three complete new crates! Added🔌 WebSocket Support (
|
This commit refactors code for improved formatting, readability, and consistency across multiple modules. It includes reordering imports, expanding multi-line expressions, improving error handling, updating function signatures, and enhancing test assertions. No functional changes are introduced.
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of Change
Checklist
Related Issues
Fixes # (issue number)
Testing
Please describe the tests that you ran to verify your changes: