From 7f7bb0871fdb7d232cd0bdb856a24a4f13e43b4d Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 23 May 2024 11:16:26 +0000 Subject: [PATCH] Update Rust crate base32 to 0.5.0 (#269) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [base32](https://github.com/andreasots/base32) | dependencies | minor | `0.4.0` -> `0.5.0` | --- ### Release Notes
andreasots/base32 (base32) ### [`v0.5.0`](https://github.com/andreasots/base32/compare/v0.4.0...v0.5.0) [Compare Source](https://github.com/andreasots/base32/compare/v0.4.0...v0.5.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.communiquons.org/pierre/BasicOIDC/pulls/269 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/data/totp_key.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 395e4ba..518d65c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -549,9 +549,9 @@ checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base32" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa" +checksum = "d1ce0365f4d5fb6646220bb52fe547afd51796d90f914d4063cb0b032ebee088" [[package]] name = "base64" diff --git a/Cargo.toml b/Cargo.toml index 1f15d8b..fcfb7b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ digest = "0.10.7" sha2 = "0.10.8" lazy-regex = "3.1.0" totp_rfc6238 = "0.5.3" -base32 = "0.4.0" +base32 = "0.5.0" qrcode-generator = "4.1.9" webauthn-rs = { version = "0.5.0", features = ["danger-allow-state-serialisation"] } url = "2.5.0" diff --git a/src/data/totp_key.rs b/src/data/totp_key.rs index 307f960..20325b1 100644 --- a/src/data/totp_key.rs +++ b/src/data/totp_key.rs @@ -9,7 +9,7 @@ use crate::data::user::User; use crate::utils::err::Res; use crate::utils::time::time; -const BASE32_ALPHABET: Alphabet = Alphabet::RFC4648 { padding: true }; +const BASE32_ALPHABET: Alphabet = Alphabet::Rfc4648 { padding: true }; const NUM_DIGITS: usize = 6; const PERIOD: u64 = 30;