From ae6cd42f738d5905c710e31944e196ca5fc4e68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20du=20Garreau?= Date: Tue, 12 Mar 2024 16:07:21 +0100 Subject: [PATCH] Update `base64` to 0.22 --- CHANGELOG.md | 1 + Cargo.toml | 2 +- tests/438_rusty_byte_strings.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4afeb39c0..58b6f41c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update the arbitrary fuzzer to check arbitrary serde data types, values, and `ron::ser::PrettyConfig`s ([#465](https://github.com/ron-rs/ron/pull/465)) - Add a benchmark for PRs that runs over the latest fuzzer corpus ([#465](https://github.com/ron-rs/ron/pull/465)) - Fuzz serde enum representation and flatten attributes and collect current limitations in ron and serde ([#502](https://github.com/ron-rs/ron/pull/502)) +- Update `base64` dependency to version 0.22 ([#529](https://github.com/ron-rs/ron/pull/529)) ## [0.8.1] - 2023-08-17 diff --git a/Cargo.toml b/Cargo.toml index 25cd73797..a28a9889b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ integer128 = [] [dependencies] # FIXME @juntyr remove base64 once old byte strings are fully deprecated -base64 = "0.21" +base64 = "0.22" bitflags = { version = "2.0", features = ["serde"] } indexmap = { version = "2.0", features = ["serde"], optional = true } # serde supports i128/u128 from 1.0.60 onwards diff --git a/tests/438_rusty_byte_strings.rs b/tests/438_rusty_byte_strings.rs index 1205afe15..1a02446f4 100644 --- a/tests/438_rusty_byte_strings.rs +++ b/tests/438_rusty_byte_strings.rs @@ -72,7 +72,7 @@ fn v_9_deprecated_base64_bytes_support() { // Too much padding assert_eq!( Err(SpannedError { - code: Error::Base64Error(base64::DecodeError::InvalidLength), + code: Error::Base64Error(base64::DecodeError::InvalidByte(6, b'=')), position: Position { line: 1, col: 45 } }), ron::from_str::("BytesStruct( small:[1, 2], large:\"AQIDBA===\" )"),