v0.15.0

ed-donner/llm_engineeringv0.15.0Mar 27, 2025by kaplanelad

AI Summary

A significant update replacing the HTTP layer with Axum and adding new core subsystems.

Key Highlights

  • Migration from hyper to Axum
  • Introduction of Scaffold v2
  • Addition of the data subsystem
  • Support for async tests
  • Improved model validation and performance

Breaking Changes

  • Migration from hyper to Axum
  • Removal of the mime crate
  • Changes to job queue status management
  • Removal of fs-err crate

New Features

  • Total items count in pagination
  • Flattened (de)serialization of custom user claims
  • Updated validator to 0.20
  • Docker deployment support for SSR
  • Worker configuration documentation (num_workers)
  • SQLite WAL and SHM file handling
  • Scheduler integration with 'cargo loco start'
  • Route nesting and prefix support
  • Async test support
  • Queue worker panic handling
  • Schema defaults support
  • Azure storage endpoint configuration
  • Model performance improvements using 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