tower-sessions-surrealdb-store

Crates.iotower-sessions-surrealdb-store
lib.rstower-sessions-surrealdb-store
version0.7.0-surrealv1
created_at2023-12-28 01:14:43.339898+00
updated_at2025-08-11 19:11:35.994726+00
descriptionSurrealDB session store. Not for direct use; see the `tower-sessions` crate for details.
homepagehttps://github.com/rynoV/tower-sessions-surrealdb-store
repositoryhttps://github.com/rynoV/tower-sessions-surrealdb-store
max_upload_size
id1082009
size137,791
Calum Sieppert (rynoV)

documentation

https://docs.rs/tower-sessions-surrealdb-store

README

tower-sessions-surrealdb-store

SurrealDB session stores for tower-sessions.

This package is in beta. It has automated tests for the basic functionality, but is untested in production.

🎨 Overview

  • Compact encoding: session data is stored in the database using MessagePack, a compact self-describing serialization format.
  • Automatic table setup: only provide a database connection and a table name; the table will be created if it does not exist.

Using surrealdb-nightly

In Config.toml:

tower-sessions-surrealdb-store = { version = "*", features = ["surrealdb-nightly"], default-features = false }

The default-features = false is necessary, otherwise you'll install both surrealdb and surrealdb-nightly and get conflicts.

🤸 Usage Example

See examples/counter.rs.

Commit count: 24

cargo fmt