Post

The most significant architectural shift in this release is the extraction of our core logic into a dedicated crate: cot-core. This new foundation handles the essentials—HTTP request handling, error management, extractors, and other fundamental building blocks.

0 reposts1 like

By decoupling the core from the rest of the framework, we've achieved a cleaner codebase and slightly faster build times. This is just the beginning; our long-term goal is to extract the ORM into its own crate as well, making it available for use in projects outside of the Cot framework. Stay tuned!

One of the long-awaited change in the ORM was the custom migrations. With Cot v0.6, you can now generate a migration template that executes arbitrary Rust code! Do you want to change format of your blog posts titles in the database? Now you can!

While we're at the ORM topic, a small, yet useful fix is that now you can use raw Rust identifiers in model and field names. You can now name your fields, models, and tables however you want!

We've overhauled the cot-site repository and moved the framework guide directly into the main cot repository. This change ensures that code and documentation updates happen at the same time. We have other documentation improvements in mind for next releases!