Loco v0.14 released: delicious migrations DSL, Axum 0.8 powered, Magic link auth added and more.

53 points jondot1 12 comments

Hi all, happy to share this new (and huge) release, now with Axum 0.8 under the hood, and new migration generators that puts you "in the zone" when you're creating your models and their relationship.

For example, this will create a movies actors (1:m - one actor in many movies), and their given awards (m:m many awards to many actors):

$ cargo loco g migration CreateMovies title:string
$ cargo loco g migration CreateActors name:string movie:references
$ cargo loco g migration CreateAwards name:string year:int
$ cargo loco g migration CreateJoinTableActorsAndAwards place:int
$ cargo loco db migrate && cargo loco db entities

More details about v0.14 here:

https://github.com/loco-rs/loco/discussions/1161