Skip to content

Commit

Permalink
drop dependency on async-std
Browse files Browse the repository at this point in the history
also adds my name to the authors, updates all dependencies, and documents the available stores in the readme
  • Loading branch information
jbr committed May 29, 2021
1 parent 5d0f22a commit c0ce5d3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
38 changes: 22 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,32 @@ edition = "2018"
keywords = []
categories = []
authors = [
"Yoshua Wuyts <[email protected]>"
"Yoshua Wuyts <[email protected]>",
"Jacob Rothstein <[email protected]>"
]

[features]

[dependencies]
async-trait = "0.1.24"
async-std = "1.6.0"
serde = { version = "1.0.114", features = ["rc", "derive"] }
async-trait = "0.1.50"
rand = "0.8.3"
base64 = "0.13.0"
sha2 = "0.9.1"
hmac = "0.10.1"
serde_json = "1.0.56"
kv-log-macro = "1.0.7"
bincode = "1.3.1"
chrono = { version = "0.4.13", default-features = false, features = ["clock", "serde", "std"] }
anyhow = "1.0.31"
blake3 = "0.3.5"
sha2 = "0.9.5"
hmac = "0.11.0"
serde_json = "1.0.64"
bincode = "1.3.3"
anyhow = "1.0.40"
blake3 = "0.3.8"
async-lock = "2.4.0"
log = "0.4.14"

[dependencies.serde]
version = "1.0.126"
features = ["rc", "derive"]

[dependencies.chrono]
version = "0.4.19"
default-features = false
features = ["clock", "serde", "std"]

[dev-dependencies]
async-std = { version = "1.6.2", features = ["attributes"] }
[dev-dependencies.async-std]
version = "1.9.0"
features = ["attributes"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
$ cargo add async-session
```

## Available implementations

* [async-sqlx-session](https://crates.io/crates/async-sqlx-session) postgres & sqlite
* [async-redis-session](https://crates.io/crates/async-redis-session)
* [async-mongodb-session](https://crates.io/crates/async-mongodb-session)

## Safety
This crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in
100% Safe Rust.
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// #![forbid(unsafe_code, future_incompatible)]
// #![deny(missing_debug_implementations, nonstandard_style)]
// #![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
#![forbid(unsafe_code, future_incompatible)]
#![forbid(unsafe_code)]
#![deny(
missing_debug_implementations,
nonstandard_style,
Expand Down Expand Up @@ -64,7 +64,7 @@ pub use base64;
pub use blake3;
pub use chrono;
pub use hmac;
pub use kv_log_macro as log;
pub use log;
pub use serde;
pub use serde_json;
pub use sha2;
4 changes: 2 additions & 2 deletions src/memory_store.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{async_trait, log, Result, Session, SessionStore};
use async_std::sync::{Arc, RwLock};
use std::collections::HashMap;
use async_lock::RwLock;
use std::{collections::HashMap, sync::Arc};

/// # in-memory session store
/// Because there is no external
Expand Down

0 comments on commit c0ce5d3

Please sign in to comment.