From 73158bf58b4324910875b2a9dd0999ae3ddac064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 May 2024 09:38:49 +0300 Subject: [PATCH] aws: Update to base32 0.5 Part-of: --- Cargo.lock | 4 ++-- net/aws/Cargo.toml | 2 +- net/aws/src/s3url.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1832d8aa..e73730d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -804,9 +804,9 @@ checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" [[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/net/aws/Cargo.toml b/net/aws/Cargo.toml index 775a8ce0..0cba40b5 100644 --- a/net/aws/Cargo.toml +++ b/net/aws/Cargo.toml @@ -12,7 +12,7 @@ rust-version.workspace = true [dependencies] async-stream = "0.3.4" -base32 = "0.4" +base32 = "0.5" aws-config = "1.0" aws-sdk-s3 = "1.0" aws-sdk-transcribestreaming = "1.0" diff --git a/net/aws/src/s3url.rs b/net/aws/src/s3url.rs index 714d18ea..f11dd308 100644 --- a/net/aws/src/s3url.rs +++ b/net/aws/src/s3url.rs @@ -60,9 +60,9 @@ pub fn parse_s3_url(url_str: &str) -> Result { .or_else(|_| { let (name, endpoint) = host.split_once('+').ok_or(())?; let name = - base32::decode(base32::Alphabet::RFC4648 { padding: true }, name).ok_or(())?; + base32::decode(base32::Alphabet::Rfc4648 { padding: true }, name).ok_or(())?; let endpoint = - base32::decode(base32::Alphabet::RFC4648 { padding: true }, endpoint).ok_or(())?; + base32::decode(base32::Alphabet::Rfc4648 { padding: true }, endpoint).ok_or(())?; let name = String::from_utf8(name).map_err(|_| ())?; let endpoint = String::from_utf8(endpoint).map_err(|_| ())?; Ok(format!("{name}{endpoint}"))