Skip to content

Commit 9ff67a5

Browse files
Merge pull request #6 from CleverCloud/chore/dependencies
chore: update dependencies
2 parents d98676c + 306bf4e commit 9ff67a5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,22 @@ keywords = [
1919
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2020

2121
[dependencies]
22-
async-trait = { version = "^0.1.51", optional = true }
22+
async-trait = { version = "^0.1.52", optional = true }
2323
base64 = { version = "^0.13.0", optional = true }
2424
bytes = { version = "^1.1.0", features = ["serde"], optional = true }
25-
hmac = { version = "^0.11.0", features = ["std"], optional = true }
26-
hyper = { version = "^0.14.15", default-features = false, optional = true }
25+
crypto-common = "^0.1.0"
26+
hmac = { version = "^0.12.0", features = ["std"], optional = true }
27+
hyper = { version = "^0.14.16", default-features = false, optional = true }
2728
hyper-tls = { version = "^0.5.0", optional = true }
2829
lazy_static = { version = "^1.4.0", optional = true }
2930
log = { version = "^0.4.14", optional = true }
3031
prometheus = { version = "^0.13.0", optional = true }
31-
serde = { version = "^1.0.130", features = ["derive"], optional = true }
32-
serde_json = { version = "^1.0.71", features = [
32+
serde = { version = "^1.0.131", features = ["derive"], optional = true }
33+
serde_json = { version = "^1.0.72", features = [
3334
"preserve_order",
3435
"float_roundtrip",
3536
], optional = true }
36-
sha2 = { version = "^0.9.8", optional = true }
37+
sha2 = { version = "^0.10.0", optional = true }
3738
thiserror = { version = "^1.0.30", optional = true }
3839
tracing = { version = "^0.1.29", optional = true }
3940
tracing-futures = { version = "^0.2.5", optional = true }

src/client/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use std::{
1616

1717
use async_trait::async_trait;
1818
use bytes::Buf;
19-
use hmac::{crypto_mac::InvalidKeyLength, Hmac, Mac, NewMac};
19+
use crypto_common::InvalidLength;
20+
use hmac::{Hmac, Mac};
2021
use hyper::{
2122
client::{connect::dns::GaiResolver, HttpConnector},
2223
header, Body, Method, StatusCode,
@@ -195,7 +196,7 @@ impl Error for ResponseError {}
195196
#[derive(thiserror::Error, Debug)]
196197
pub enum SignerError {
197198
#[error("failed to compute invalid key length, {0}")]
198-
Digest(InvalidKeyLength),
199+
Digest(InvalidLength),
199200
#[error("failed to compute time since unix epoch, {0}")]
200201
UnixEpochTime(SystemTimeError),
201202
#[error("failed to parse signature paramater, {0}")]

0 commit comments

Comments
 (0)