diff --git a/Cargo.toml b/Cargo.toml index 24c26e5..e13d94f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"] [dependencies] hex = { version = "0.4.3", optional = true } -hmac = { version = "0.12.1", optional = true } -ruma = { version = "0.16.0", features = ["api", "events"] } +hmac = { version = "0.13.0", optional = true } +ruma = { version = "0.17.0", features = ["api", "events"] } serde = { version = "1.0.118", features = ["derive"] } -sha1 = { version = "0.10.1", optional = true } +sha1 = { version = "0.11.0", optional = true } [dev-dependencies] serde_json = "1.0.61" diff --git a/src/register_users/shared_secret_register/v1.rs b/src/register_users/shared_secret_register/v1.rs index 4a05f43..3eaa99e 100644 --- a/src/register_users/shared_secret_register/v1.rs +++ b/src/register_users/shared_secret_register/v1.rs @@ -1,7 +1,7 @@ //! [POST /_synapse/admin/v1/register](https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md) #[cfg(feature = "shared-secret-registration-mac")] -use hmac::{Hmac, Mac, digest::InvalidLength}; +use hmac::{Hmac, KeyInit as _, Mac, digest::InvalidLength}; use ruma::{ OwnedDeviceId, OwnedServerName, OwnedUserId, api::{auth_scheme::NoAuthentication, metadata, request, response},