diff --git a/Cargo.lock b/Cargo.lock index 9355ce2..98428ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,25 +97,25 @@ dependencies = [ name = "badge" version = "0.2.0" dependencies = [ - "base64 0.13.1", + "base64 0.22.1", "once_cell", "rusttype", "serde", "serde_urlencoded", ] -[[package]] -name = "base64" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" - [[package]] name = "base64" version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + [[package]] name = "bitflags" version = "1.3.2" diff --git a/libs/badge/Cargo.toml b/libs/badge/Cargo.toml index 4b652c6..d7c4106 100644 --- a/libs/badge/Cargo.toml +++ b/libs/badge/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" path = "badge.rs" [dependencies] -base64 = "0.13" +base64 = "0.22" once_cell = "1" rusttype = "0.9" serde = { version = "1", features = ["derive"] } diff --git a/libs/badge/badge.rs b/libs/badge/badge.rs index c0b89fa..146eb69 100644 --- a/libs/badge/badge.rs +++ b/libs/badge/badge.rs @@ -88,7 +88,7 @@ impl Badge { pub fn to_svg_data_uri(&self) -> String { format!( "data:image/svg+xml;base64,{}", - Base64Display::with_config(self.to_svg().as_bytes(), base64::STANDARD) + Base64Display::new(self.to_svg().as_bytes(), &base64::prelude::BASE64_STANDARD) ) }