Cot.rs's Avatar

Cot.rs

@cot.rs.bsky.social

The Rust web framework for lazy developers

23 Followers  |  5 Following  |  12 Posts  |  Joined: 13.05.2025  |  1.5794

Latest posts by cot.rs on Bluesky


Cot v0.5: New Features for Lazy Web Developers | Blog | Mateusz Maćkowski

In case you missed it, we've recently published the 0.5 version of Cot! This release brings in a cache system, email sending support, bulk insert for the ORM, among other changes!

Have a look at the blog post about the release: mackow.ski/blog/cot-v05...

Or go to the guide: cot.rs/guide/v0.5/

31.01.2026 15:35 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Cot The Rust web framework for lazy developers. Build secure, type-safe web apps with ease.

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...

11.09.2025 21:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screenshot of code showcasing FromRequestParts derive macro in use.

A screenshot of code showcasing FromRequestParts derive macro in use.

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.

11.09.2025 21:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
A screenshot of TOML configuration showing usage of redis as a backend for cache for session store.

A screenshot of TOML configuration showing usage of redis as a backend for cache for session store.

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.

11.09.2025 21:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
An HTML form showing Cot support for chrono types in forms.

An HTML form showing Cot support for chrono types in forms.

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".

11.09.2025 21:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Nicely-looking error page on the Cot site.

Nicely-looking error page on the Cot site.

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.

11.09.2025 21:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Cot v0.4 is out! This Rust web framework update brings significant improvements to error handling, forms, and session management. We've been working on this for four months and are quite pleased with how it turned out πŸŽ‰

11.09.2025 21:30 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 1    πŸ“Œ 1
Preview
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.

Please do try Cot and let us know how do you like it!

github.com/cot-rs/cot

13.05.2025 13:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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.

13.05.2025 13:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

13.05.2025 13:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

13.05.2025 13:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The Cot v0.3.0 has just been released! This release introduces several new features, improvements, and bug fixes, making it even easier to build web applications with Cot.

Go check it out on GitHub: github.com/cot-rs/cot/r...

Or take a look at @mackow.ski's post: mackow.ski/blog/cot-v03...

13.05.2025 13:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1

@cot.rs is following 5 prominent accounts