-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove interior mutability inside of Session * store values in memory as serde_json::Values instead of strings * add Session::take_value * use dashmap in MemoryStore * add an Error associated type instead of using anyhow * remove reexported but unused libraries * make memory-store and cookie-store cargo features (currently enabled by default) * updates base64 * adds Session::from_parts and Session::data
- Loading branch information
Showing
6 changed files
with
233 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,25 +14,28 @@ authors = [ | |
"Jacob Rothstein <[email protected]>" | ||
] | ||
|
||
[features] | ||
default = ["memory-store", "cookie-store"] | ||
memory-store = ["dashmap", "thiserror", "log"] | ||
cookie-store = ["bincode-json", "thiserror"] | ||
|
||
[dependencies] | ||
async-trait = "0.1.59" | ||
async-trait = "0.1.64" | ||
rand = "0.8.5" | ||
base64 = "0.20.0" | ||
sha2 = "0.10.6" | ||
hmac = "0.12.1" | ||
serde_json = "1.0.89" | ||
bincode = "1.3.3" | ||
anyhow = "1.0.66" | ||
base64 = "0.21.0" | ||
serde_json = "1.0.93" | ||
blake3 = "1.3.3" | ||
async-lock = "2.6.0" | ||
log = "0.4.17" | ||
log = { version = "0.4.17", optional = true } | ||
dashmap = { version = "5.4.0", optional = true } | ||
bincode-json = { version = "0.1.5", features = ["json"], optional = true } | ||
thiserror = { version = "1.0.38", optional = true } | ||
|
||
[dependencies.serde] | ||
version = "1.0.150" | ||
features = ["rc", "derive"] | ||
version = "1.0.152" | ||
features = ["derive"] | ||
|
||
[dependencies.time] | ||
version = "0.3.17" | ||
version = "0.3.18" | ||
features = ["serde"] | ||
|
||
[dev-dependencies.async-std] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.