Skip to content

🥠 Sessions as a `tower` and `axum` middleware.

License

Notifications You must be signed in to change notification settings

carloskiki/tower-sessions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tower-sessions

User sessions as a `tower` middleware.

TODOs

  • tracing.
  • TEST

Session stores

Session data persistence is managed by user-provided types that implement SessionStore. What this means is that applications can and should implement session stores to fit their specific needs.

That said, a number of session store implmentations already exist and may be useful starting points.

Crate Persistent Description
tower-sessions-redis-store Yes Redis via fred session store

Have a store to add? Please open a PR adding it.

Usage

To use the crate in your project, add the following to your Cargo.toml file:

[dependencies]
tower-sessions = "0.13.0"

You can find this example as well as other example projects in the example directory.

Note

See the crate documentation for more usage information.

Getting Help

We've put together a number of examples to help get you started. You're also welcome to open a discussion and ask additional questions you might have.

👯 Contributing

We appreciate all kinds of contributions, thank you!

About

🥠 Sessions as a `tower` and `axum` middleware.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%