Skip to content

Commit b9a5804

Browse files
authored
Merge pull request #7 from chmoder/feature-update-deps
Feature update deps
2 parents a5afbd3 + c9188bc commit b9a5804

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,29 @@ description = "Data Vault is a modular, pragmatic, credit card vault for Rust."
1010
license = "MIT"
1111

1212
[dependencies]
13-
deadpool-redis = { version = "^0.6" }
14-
deadpool-postgres = { version = "^0.6" }
13+
deadpool-redis = { version = "^0.7" }
14+
redis = { version = "0.19", default-features = false, features = ["aio"] }
15+
deadpool-postgres = { version = "^0.7" }
1516
config-crate = {package = "config", version = "^0.10", default-features = false }
1617
serde = { version = "^1.0", features = ["derive"] }
1718
serde_json = { version = "^1.0" }
1819
async-trait = "^0.1" # remove some day hopefully
1920
credit_card = { version = "^0.1" }
2021
dotenv = "^0.15"
2122
hex = "^0.4"
22-
block-modes = "^0.5"
23-
aes-gcm-siv = "^0.5"
24-
aes = "^0.4"
25-
rand = "^0.7"
23+
block-modes = "^0.7"
24+
aes-gcm-siv = "^0.9"
25+
aes = "^0.6"
26+
rand = "^0.8"
2627
blake3 = "^0.3"
2728

2829
[dev-dependencies]
2930
criterion = "^0.3"
30-
env_logger = "^0.7"
31+
env_logger = "^0.8"
3132
log = "^0.4"
3233
futures = "^0.3"
33-
tokio = { version = "^0.3", features = ["full"] }
34+
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
35+
redis = { version = "0.19", default-features = false, features = ["tokio-comp"] }
3436

3537
[lib]
3638
bench = false

src/utils/random.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::iter;
21
use rand::{Rng, thread_rng};
32
use rand::distributions::Alphanumeric;
43

@@ -14,9 +13,9 @@ impl Salt {
1413
/// ```
1514
pub fn generate(length: usize) -> String {
1615
let mut rng = thread_rng();
17-
iter::repeat(())
18-
.map(|()| rng.sample(Alphanumeric))
16+
(&mut rng).sample_iter(Alphanumeric)
1917
.take(length)
18+
.map(char::from)
2019
.collect()
2120
}
2221
}

0 commit comments

Comments
 (0)