Skip to content

Commit e06d57e

Browse files
committed
drop dependency on async-std
also adds my name to the authors, updates all dependencies, and documents the available stores in the readme
1 parent 5d0f22a commit e06d57e

File tree

4 files changed

+32
-20
lines changed

4 files changed

+32
-20
lines changed

Cargo.toml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,32 @@ edition = "2018"
1010
keywords = []
1111
categories = []
1212
authors = [
13-
"Yoshua Wuyts <[email protected]>"
13+
"Yoshua Wuyts <[email protected]>",
14+
"Jacob Rothstein <[email protected]>"
1415
]
1516

16-
[features]
17-
1817
[dependencies]
19-
async-trait = "0.1.24"
20-
async-std = "1.6.0"
21-
serde = { version = "1.0.114", features = ["rc", "derive"] }
18+
async-trait = "0.1.50"
2219
rand = "0.8.3"
2320
base64 = "0.13.0"
24-
sha2 = "0.9.1"
25-
hmac = "0.10.1"
26-
serde_json = "1.0.56"
27-
kv-log-macro = "1.0.7"
28-
bincode = "1.3.1"
29-
chrono = { version = "0.4.13", default-features = false, features = ["clock", "serde", "std"] }
30-
anyhow = "1.0.31"
31-
blake3 = "0.3.5"
21+
sha2 = "0.9.5"
22+
hmac = "0.11.0"
23+
serde_json = "1.0.64"
24+
bincode = "1.3.3"
25+
anyhow = "1.0.40"
26+
blake3 = "0.3.8"
27+
async-lock = "2.4.0"
28+
log = "0.4.14"
29+
30+
[dependencies.serde]
31+
version = "1.0.126"
32+
features = ["rc", "derive"]
3233

34+
[dependencies.chrono]
35+
version = "0.4.19"
36+
default-features = false
37+
features = ["clock", "serde", "std"]
3338

34-
[dev-dependencies]
35-
async-std = { version = "1.6.2", features = ["attributes"] }
39+
[dev-dependencies.async-std]
40+
version = "1.9.0"
41+
features = ["attributes"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
$ cargo add async-session
4747
```
4848

49+
## Available implementations
50+
51+
* [async-sqlx-session](https://crates.io/crates/async-sqlx-session) postres & sqlite
52+
* [async-redis-session](https://crates.io/crates/async-redis-session)
53+
* [async-mongodb-session](https://crates.io/crates/async-mongodb-session)
54+
4955
## Safety
5056
This crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in
5157
100% Safe Rust.

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// #![forbid(unsafe_code, future_incompatible)]
3636
// #![deny(missing_debug_implementations, nonstandard_style)]
3737
// #![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
38-
#![forbid(unsafe_code, future_incompatible)]
38+
#![forbid(unsafe_code)]
3939
#![deny(
4040
missing_debug_implementations,
4141
nonstandard_style,
@@ -64,7 +64,7 @@ pub use base64;
6464
pub use blake3;
6565
pub use chrono;
6666
pub use hmac;
67-
pub use kv_log_macro as log;
67+
pub use log;
6868
pub use serde;
6969
pub use serde_json;
7070
pub use sha2;

src/memory_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{async_trait, log, Result, Session, SessionStore};
2-
use async_std::sync::{Arc, RwLock};
3-
use std::collections::HashMap;
2+
use async_lock::RwLock;
3+
use std::{collections::HashMap, sync::Arc};
44

55
/// # in-memory session store
66
/// Because there is no external

0 commit comments

Comments
 (0)