Registry / web-framework / async-session

async-session

JSON →
library3.0.0rscratesunverified

Async session support with pluggable middleware.

# Cargo.toml [dependencies] async-session = "3.0.0"
INSTALL
IMPORT
SIG · ASYNC-SESSION
A
async-session
web-frameworkrustv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Session
use async_session::Session;

Creates a new session and inserts data.

use async_session::Session; fn main() { let mut session = Session::new(); session.insert("user_id", 42).unwrap(); println!("Session ID: {}", session.id()); }
Debug
Known issues
gotchaRequires an async runtime like tokio or async-std.
fix
Add `tokio` or `async-std` as a dependency and use `#[tokio::main]` or `#[async_std::main]`.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
24
Amazon
1
Resources
async-session — cargo add async-session · libregistry