Skip to content

Commit 87c84b9

Browse files
authored
Update dependencies (#287)
* Update dependencies * Add wasm support
1 parent 16bcf0a commit 87c84b9

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

sdk/core/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ http = "0.2"
2222
hyper = { version = "0.14", optional = true }
2323
hyper-rustls = { version = "0.22", optional = true }
2424
log = "0.4"
25-
oauth2 = "4.0.0"
26-
rand = "0.7"
25+
oauth2 = "4.0"
26+
rand = "0.8"
27+
# Add dependency to getrandom to enable WASM support
28+
getrandom = { version = "0.2", features = ["js"] }
2729
reqwest = { version = "0.11", features = ["stream"], optional = true }
2830
serde = "1.0"
2931
serde_derive = "1.0"
@@ -33,7 +35,7 @@ url = "2.2"
3335
uuid = { version = "0.8" }
3436

3537
[build-dependencies]
36-
rustc_version = "0.3.3"
38+
rustc_version = "0.4"
3739

3840
[dev-dependencies]
3941
env_logger = "0.8"

sdk/iothub/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ azure_core = { path = "../core", version = "0.1.0" }
99
base64 = "0.13"
1010
bytes = "1.0"
1111
chrono = "0.4"
12-
crypto-mac = { version = "0.10", features = ["std"] }
13-
hmac = "0.10"
12+
crypto-mac = { version = "0.11", features = ["std"] }
13+
hmac = "0.11"
1414
http = "0.2"
1515
serde = { version = "1.0", features = ["derive"] }
1616
serde_json = "1.0"

sdk/iothub/src/service/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ impl ServiceClient {
116116

117117
let key = decode(private_key).map_err(GenerateSasTokenError::DecodePrivateKeyError)?;
118118

119-
let mut hmac =
120-
HmacSHA256::new_varkey(key.as_ref()).map_err(GenerateSasTokenError::HashingFailed)?;
119+
let mut hmac = HmacSHA256::new_from_slice(key.as_ref())
120+
.map_err(GenerateSasTokenError::HashingFailed)?;
121121

122122
hmac.update(data.as_bytes());
123123
let result = hmac.finalize();

sdk/key_vault/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ azure_core = { path = "../core", version = "0.1.0" }
2727
azure_identity = { version = "0.1", path = "../identity" }
2828

2929
[dev-dependencies]
30-
mockito = "0.28"
30+
mockito = "0.30"
3131
async-trait = "0.1"
3232
tokio = { version = "1.0", features = ["full"] }

0 commit comments

Comments
 (0)