Hirevo / alexandrie

An alternative crate registry, implemented in Rust.
https://hirevo.github.io/alexandrie/
Apache License 2.0
493 stars 55 forks source link

Move to `tower-sessions` #175

Closed Hirevo closed 11 months ago

Hirevo commented 11 months ago

As @maxcountryman, the author of the axum-sessions crate, has kindly notified us in #174, axum-sessions has been hitting some problems due to its dependence on async-sessions, and a successor crate called tower-sessions has been released, which is free of this dependency and less limited in its API design.

This PR, therefore, refactors Alexandrie to use this new tower-sessions crate instead of axum-sessions.

Closes #174.

Hirevo commented 11 months ago

The code currently doesn't compile due to me not being sure of what to do regarding expanding session durations.
See this comment for more details.

Hirevo commented 11 months ago

There isn't anything left blocking this from being merged.
This is ready.

@maxcountryman Thank you very much for your reactivity on the few issues I encountered.