mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 08:58:15 +00:00
aws: Update to base32 0.5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1582>
This commit is contained in:
parent
3036cadd20
commit
73158bf58b
3 changed files with 5 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -60,9 +60,9 @@ pub fn parse_s3_url(url_str: &str) -> Result<GstS3Url, String> {
|
|||
.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}"))
|
||||
|
|
Loading…
Reference in a new issue