Loco v0.14 released! 🚀 #1161
jondot
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🚀 Exciting Updates in the Latest Loco Release! 🎉
We're thrilled to announce a powerful new version of Loco, packed with features, fixes, and improvements designed to supercharge your development experience! Here's what's new:
🌟 New Features
Smart Migration Generator (add: infer migration #1086)
Generate migrations effortlessly! Name your migrations for creating tables, adding columns, references, join tables, and more. Simplify your database evolution with this game-changing feature.
Pretty-Print Routes
The
cargo loco routes
command now pretty-prints your app's routes for better clarity and debugging.Magic Links (magic link #1085)
Effortlessly authenticate your users with our new magic link feature.
Manage Background Jobs (implement commands to manage background jobs #1071)
CLI commands for managing background jobs are here—making job control easier than ever!
Load Config Hook (create load config hook #1143)
A new lifecycle hook allows dynamic configuration loading for your app.
Disable Payload Middleware (allow disable limit_payload middleware #1113)
You can now disable the
limit_payload
middleware when needed for more flexibility.🔧 Fixes and Improvements
JWT Error Behind Feature Flag (fix: guard jwt error behind feature flag #1032)
Guards the JWT error behind a feature flag for better modularity.
Logger File Appender Fix (fix: logger file_appender not using the seperated format setting #1036)
File appenders now respect the separated format settings. Logs made right!
More Flexible Config
Take more values from ENV for enhanced configurability.
SMTP Config (feat(mailer): expose hello_name for SMTP client config #1057)
Expose the
hello_name
option for advanced SMTP client setups.Use Rustls with Reqwest (chore(deps): use reqwest with rustls rather than openssl #1058)
Say goodbye to OpenSSL; we've transitioned to Rustls for a smoother experience.
Upgrade from 0.13.x to 0.14.x
Upgrading from Axum 0.7 to 0.8
PR: [#1130](#1130)
The upgrade to Axum 0.8 introduces a breaking change. For more details, refer to the [official announcement](https://tokio.rs/blog/2025-01-01-announcing-axum-0-8-0).
Steps to Upgrade:
Cargo.toml
to use Axum version0.8.1
:use axum::async_trait;
withuse async_trait::async_trait;
. Learn more [here](https://tokio.rs/blog/2025-01-01-announcing-axum-0-8-0#async_trait-removal)./:single
and/*many
/{single}
and/{*many}
Details are available in [this section](https://tokio.rs/blog/2025-01-01-announcing-axum-0-8-0#path-parameter-syntax-changes).
Extending the
boot
Function HookPR: [#1143](#1143)
The
boot
function hook now includes a newConfig
parameter. Update the function signature in your code:Old:
New:
Make sure to import the
Config
type as needed.Upgrade Validator Crate
PR: [#993](#993)
Update the
validator
crate version in yourCargo.toml
:Old:
New:
We're dedicated to making Loco your go-to framework for rapid and powerful development. Upgrade now and experience the future of web development with Loco! ✨
Happy coding,
The Loco Team 🚂
This release was brought to you with the help of the following committers:
@georgeboot
@lonelyhentxi
@jorgehermo9
@kun1988
@mikey
@huang
@Xuanwo
@pin3da
@tsailin-bit
@joelparkerhenderson
@jtwaleson
@blisscs
@Swoorup
@sytherax
@AngelOnFira
@anhnmt
@mccormickt
@greyblake
@DenuxPlays
Beta Was this translation helpful? Give feedback.
All reactions