Cot.rs
cot.rs
Cot.rs
@cot.rs
The Rust web framework for lazy developers
We plan to make releases much more often going forward instead of these 4-month gaps. It'll be much easier to remember what we've changed when it's fresh 😅

Check out the guide at: cot.rs/guide/v0.4/

And the blog post: mackow.ski/blog/cot-v04...
Cot
The Rust web framework for lazy developers. Build secure, type-safe web apps with ease.
cot.rs
September 11, 2025 at 9:31 PM
The new `FromRequestParts` derive macro cuts down on repetitive code. Instead of listing `Urls`, `StaticFiles`, and `RouteName` in every handler signature, you can bundle them into one struct. Small quality of life improvement that really adds up.
September 11, 2025 at 9:31 PM
Session stores are now pluggable, so you can switch between backends without touching your code. Use in-memory for development, Redis for production, or the new database-backed store, which is now the default since it's good enough until you need Redis performance.
September 11, 2025 at 9:31 PM
Forms are much more capable now. File uploads work out of the box just by using a pre-defined special type! Full chrono support means date and time pickers actually work properly, and you can configure HTML attributes programmatically with restrictions like "images only".
September 11, 2025 at 9:31 PM
Error handling got a complete redesign. Before, you mostly got 404s and 500s; now you get proper HTTP status codes for different error types. The new system uses a single error handler instead of separate ones, and we managed to shrink error structs from 110+ bytes down to just 8 bytes.
September 11, 2025 at 9:31 PM
Please do try Cot and let us know how do you like it!

github.com/cot-rs/cot
GitHub - cot-rs/cot: The Rust web framework for lazy developers.
The Rust web framework for lazy developers. Contribute to cot-rs/cot development by creating an account on GitHub.
github.com
May 13, 2025 at 1:04 PM
The static file framework has been improved to support content hashing. This is a big win for production performance, as it allows you to use aggressive caching strategies without worrying about cache invalidation.
May 13, 2025 at 1:04 PM
Another neat thing is the addition of the `IntoResponse` trait. This trait allows you to convert any type into a response, making it easier to return different types of responses from your request handlers.
May 13, 2025 at 1:04 PM
One of the biggest features is the automatic OpenAPI specification generation! It allows you to generate a specification for your API endpoints automatically, making it almost zero effort to generate Swagger UI for your RESTful endpoints that will always be kept in sync with the source code.
May 13, 2025 at 1:04 PM