v0.15.0
loco-rs/locov0.15.0Mar 27, 2025by kaplanelad
AI Summary
Feature-rich release adding pagination with total_items, scaffold v2, async test support, and data subsystem. Major architectural changes include replacing hyper with axum and removing several dependencies for cleaner codebase.
Key Highlights
- Pagination with total_items in views and responses
- Scaffold v2 system
- Replace hyper crate with axum
- Data subsystem addition
- Async test support
New Features
- Added total_items to pagination view and response
- Flatten (de)serialization of custom user claims
- Updated validator to 0.20
- Scaffold v2
- Docker deployment support for server-side and client-side rendering
- num_workers worker configuration documentation
- Smoother model validations
- Ignore SQLite WAL and SHM files
- Run scheduler as part of cargo loco start
- Prefix and route nesting for AppRoutes
- Replaced hyper with axum
- Removed mime crate
- Support for async tests
- Job queue status from CLI
- Handle panics in queue worker
- Schema with defaults
- Add data subsystem
- Azure storage builder endpoint argument
- Improved Model readability and performance with map_err
Full Release Notes
* Added total_items to pagination view & response. https://github.com/loco-rs/loco/pull/1197 * Flatten (de)serialization of custom user claims. https://github.com/loco-rs/loco/pull/1159 * Updated validator to 0.20. https://github.com/loco-rs/loco/pull/1199 * Scaffold v2. https://github.com/loco-rs/loco/pull/1209 * Fix generator Docker deployment to support both server-side and client-side rendering. https://github.com/loco-rs/loco/pull/1227 * Docs: num_workers worker configuration. https://github.com/loco-rs/loco/pull/1242 * Smoother model validations. https://github.com/loco-rs/loco/pull/1233 * Docs: num_workers worker configuration. https://github.com/loco-rs/loco/pull/1242 * Ignore SQLite WAL and SHM files and update Cargo watch crate docs. https://github.com/loco-rs/loco/pull/1254 * Remove fs-err crate. https://github.com/loco-rs/loco/pull/1253 * Allows to run scheduler as part of cargo loco start. https://github.com/loco-rs/loco/pull/1247 * Added prefix and route nesting to AppRoutes. https://github.com/loco-rs/loco/pull/1241 * Replace hyper crate with axum. https://github.com/loco-rs/loco/pull/1258 * Remove mime crate. https://github.com/loco-rs/loco/pull/1256 * Support async tests. https://github.com/loco-rs/loco/pull/1237 * Change job queue status from cli. https://github.com/loco-rs/loco/pull/1228 * Handle panics in queue worker. https://github.com/loco-rs/loco/pull/1274 * Schema with defaults. https://github.com/loco-rs/loco/pull/1273 * Add data subsystem. https://github.com/loco-rs/loco/pull/1267 * Add "endpoint" arg to azure storage builder.https://github.com/loco-rs/loco/pull/1317 * Improve readability and performance by using map_err in Model. https://github.com/loco-rs/loco/pull/1311