1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Storage backends for the authentication framework.
//!
//! This module provides the [`AuthStorage`] trait and multiple backend
//! implementations:
//!
//! | Backend | Feature flag | Module |
//! |---------|-------------|--------|
//! | In-memory (HashMap) | *(always available)* | [`memory`] |
//! | In-memory (DashMap) | *(always available)* | [`dashmap_memory`] |
//! | Redis | `redis-storage` | [`redis`] |
//! | PostgreSQL | `postgres-storage` | [`postgres`] |
//! | MySQL | `mysql-storage` | [`mysql`] |
//! | SQLite | `sqlite-storage` | [`sqlite`] |
//! | AES-256-GCM encrypted wrapper | *(always available)* | [`encryption`] |
//!
//! All backends implement [`AuthStorage`], so they can be used
//! interchangeably via `dyn AuthStorage` or generics.
// DashMap-based storage proof-of-concept
// AES-256-GCM encryption for storage at rest
pub
// Performance optimized unified storage
// Re-export the main storage traits and types
pub use *;
pub use ;
// Re-export unified storage when feature is enabled
pub use ;
// Convenience re-export for common trait
pub use crateAuthStorage;