User sessions as a `tower` middleware.
- tracing.
- TEST
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.
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.
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.
We appreciate all kinds of contributions, thank you!