From 76d69efd1b6b092948ec085b1a289cced04f4e4a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:18:13 +0000 Subject: [PATCH 1/2] Update base64 requirement from 0.21 to 0.22 Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version. - [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md) - [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: base64 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bb920db..816b2c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ build-cli = ["dep:clap"] [dependencies] ark-serialize = { version = "0.4.0", optional = true, default-features = false, features = ["derive"] } ark-std = { version = "0.4.0", default-features = false } -base64 = "0.21" +base64 = "0.22" crc-any = { version = "2.4.1", default-features = false } serde = { version = "1.0", optional = true, features = ["derive"] } snafu = { version = "0.7", features = ["backtraces"] } From 0ebc9f86cda5f22c0dbb06b8c193d7d7ce7b706b Mon Sep 17 00:00:00 2001 From: Jeb Bearer Date: Fri, 15 Mar 2024 14:18:25 -0400 Subject: [PATCH 2/2] Update base64 error test --- tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.rs b/tests/tests.rs index a7ce661..b4a165f 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -366,7 +366,7 @@ fn test_js_new_error() { fn wasm_error_to_string() { assert_eq!( JsValue::from(Tb64Error::from(base64::DecodeError::InvalidByte(66, 42))), - to_jsvalue("invalid base 64: Invalid byte 42, offset 66.") + to_jsvalue("invalid base 64: Invalid symbol 42, offset 66.") ); } @@ -377,7 +377,7 @@ fn test_error_fmt() { "{}", Tb64Error::from(base64::DecodeError::InvalidByte(66, 42)) ), - "invalid base 64: Invalid byte 42, offset 66." + "invalid base 64: Invalid symbol 42, offset 66." ); }