From b072f49f4f84ac2c1c5f80381788dce5635e92a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 17 Nov 2024 18:10:52 +0100 Subject: [PATCH] Update dependencies --- Cargo.toml | 4 ++-- src/key.rs | 2 +- src/oath.rs | 2 +- src/oath/key_uri.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 66afc7b..68aa6ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ stderror = ["thiserror"] [dependencies] balloon-hash = { version = "0.4.0", default-features = false, optional = true, features = ["alloc"] } -base32 = { version = "0.4.0", default-features = false, optional = true } +base32 = { version = "0.5.1", default-features = false, optional = true } base64 = { version = "0.22.0", default-features = false, optional = true, features = ["std"] } digest = { version = "0.10.0", default-features = false, optional = true, features = ["mac"] } getrandom = { version = "0.2.9", default-features = false, optional = true } @@ -45,6 +45,6 @@ rust-argon2 = { version = "2.0.0", default-features = false, optional = true } sha-1 = { version = "0.10.1", default-features = false, optional = true } sha2 = { version = "0.10.6", default-features = false, optional = true } sha3 = { version = "0.10.7", default-features = false, optional = true } -thiserror = { version = "1.0.40", default-features = false, optional = true } +thiserror = { version = "2.0.3", default-features = false, optional = true } unicode-normalization = { version = "0.1.22", default-features = false, optional = true } url = { version = "2.3.1", default-features = false, optional = true } diff --git a/src/key.rs b/src/key.rs index acb94da..8cd5e0f 100644 --- a/src/key.rs +++ b/src/key.rs @@ -93,7 +93,7 @@ impl KeyBuilder { /// Return the current key as a base 32 encoded string. pub fn as_base32(&self) -> String { base32::encode( - base32::Alphabet::RFC4648 { padding: false }, + base32::Alphabet::Rfc4648 { padding: false }, self.key.clone().unwrap().as_slice(), ) } diff --git a/src/oath.rs b/src/oath.rs index dd316ae..656a120 100644 --- a/src/oath.rs +++ b/src/oath.rs @@ -175,7 +175,7 @@ macro_rules! builder_common { /// Sets the shared secret. This secret is passed as a base32 encoded string. pub fn base32_key(&mut self, key: &str) -> &mut Self { - match base32::decode(base32::Alphabet::RFC4648 { padding: false }, &key) { + match base32::decode(base32::Alphabet::Rfc4648 { padding: false }, &key) { Some(k) => { self.key = Some(k); } diff --git a/src/oath/key_uri.rs b/src/oath/key_uri.rs index ddce567..154cf4f 100644 --- a/src/oath/key_uri.rs +++ b/src/oath/key_uri.rs @@ -210,7 +210,7 @@ impl<'a> KeyUriBuilder<'a> { uri.set_path(&label_final); let secret_final = base32::encode( - base32::Alphabet::RFC4648 { padding: false }, + base32::Alphabet::Rfc4648 { padding: false }, self.key.as_slice(), ); uri.query_pairs_mut().append_pair("secret", &secret_final);