Skip to content

Releases: imbolc/tower-cookies

Update to axum-core 0.1

03 Dec 05:47
Compare
Choose a tag to compare

This changes tower-cookies to have a public dependency on axum-core
instead of axum.

axum-core is designed to be a small crate that only contains the
FromRequest and IntoResponse traits. Because of the smaller API its
less likely to receive breaking changes. Therefore its recommended for
library to depend on that instead of axum.

Note this is a breaking change since axum 0.3 doesn't know about
axum-core.

Thank you @davidpdrsn 🙏

Signed cookies

18 Nov 16:02
ea56c38
Compare
Choose a tag to compare
async fn handler(cookies: Cookies) -> String {
    cookies.signed(&my_key).get("my_cookie").unwrap().value.into()
}

Optimization

18 Nov 10:15
Compare
Choose a tag to compare

Fix: changed flag was unnecessary enabled on Cookies::get

Examples and docs are adapted to Axum-0.3

06 Nov 14:38
Compare
Choose a tag to compare
v0.2.1

Examples and docs is adapted to Axum-0.3

No need for `Cookies` to be `mut` anymore

16 Oct 08:47
Compare
Choose a tag to compare
  • Cookies methods now take &self instead of &mut self.
    Migration: fn handler(mut cookies: Cookies) => fn handler(cookies: Cookies)
  • Standard layer semantic.
    Migration: .layer(CookieLayer) => .layer(CookieManagerLayer::new())

Thank you @programatik29 🙏