Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

fix(deps): update rust crate base64 to 0.22.0 #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 10, 2022

This PR contains the following updates:

Package Type Update Change
base64 dependencies minor 0.13.1 -> 0.22.0

Release Notes

marshallpierce/rust-base64 (base64)

v0.22.1

Compare Source

  • Correct the symbols used for the predefined alphabet::BIN_HEX.

v0.22.0

Compare Source

  • DecodeSliceError::OutputSliceTooSmall is now conservative rather than precise. That is, the error will only occur if the decoded output cannot fit, meaning that Engine::decode_slice can now be used with exactly-sized output slices. As part of this, Engine::internal_decode now returns DecodeSliceError instead of DecodeError, but that is not expected to affect any external callers.
  • DecodeError::InvalidLength now refers specifically to the number of valid symbols being invalid (i.e. len % 4 == 1), rather than just the number of input bytes. This avoids confusing scenarios when based on interpretation you could make a case for either InvalidLength or InvalidByte being appropriate.
  • Decoding is somewhat faster (5-10%)

v0.21.7

Compare Source

  • Support getting an alphabet's contents as a str via Alphabet::as_str()

v0.21.6

Compare Source

  • Improved introductory documentation and example

v0.21.5

Compare Source

  • Add Debug and Clone impls for the general purpose Engine

v0.21.4

Compare Source

  • Make encoded_len const, allowing the creation of arrays sized to encode compile-time-known data lengths

v0.21.3

Compare Source

  • Implement source instead of cause on Error types
  • Roll back MSRV to 1.48.0 so Debian can continue to live in a time warp
  • Slightly faster chunked encoding for short inputs
  • Decrease binary size

v0.21.2

Compare Source

  • Rollback MSRV to 1.57.0 -- only dev dependencies need 1.60, not the main code

v0.21.1

Compare Source

  • Remove the possibility of panicking during decoded length calculations
  • DecoderReader no longer sometimes erroneously ignores
    padding #​226

Breaking changes

  • Engine.internal_decode return type changed
  • Update MSRV to 1.60.0

v0.21.0

Compare Source

Migration

Functions
< 0.20 function 0.21 equivalent
encode() engine::general_purpose::STANDARD.encode() or prelude::BASE64_STANDARD.encode()
encode_config() engine.encode()
encode_config_buf() engine.encode_string()
encode_config_slice() engine.encode_slice()
decode() engine::general_purpose::STANDARD.decode() or prelude::BASE64_STANDARD.decode()
decode_config() engine.decode()
decode_config_buf() engine.decode_vec()
decode_config_slice() engine.decode_slice()

The short-lived 0.20 functions were the 0.13 functions with config replaced with engine.

Padding

If applicable, use the preset engines engine::STANDARD, engine::STANDARD_NO_PAD, engine::URL_SAFE,
or engine::URL_SAFE_NO_PAD.
The NO_PAD ones require that padding is absent when decoding, and the others require that
canonical padding is present .

If you need the < 0.20 behavior that did not care about padding, or want to recreate < 0.20.0's predefined Configs
precisely, see the following table.

0.13.1 Config 0.20.0+ alphabet encode_padding decode_padding_mode
STANDARD STANDARD true Indifferent
STANDARD_NO_PAD STANDARD false Indifferent
URL_SAFE URL_SAFE true Indifferent
URL_SAFE_NO_PAD URL_SAFE false Indifferent

v0.20.0

Compare Source

Breaking changes

  • Update MSRV to 1.57.0
  • Decoding can now either ignore padding, require correct padding, or require no padding. The default is to require
    correct padding.
    • The NO_PAD config now requires that padding be absent when decoding.

0.20.0-alpha.1

Breaking changes
  • Extended the Config concept into the Engine abstraction, allowing the user to pick different encoding / decoding
    implementations.
    • What was formerly the only algorithm is now the FastPortable engine, so named because it's portable (works on
      any CPU) and relatively fast.
    • This opens the door to a portable constant-time
      implementation (#​153,
      presumably ConstantTimePortable?) for security-sensitive applications that need side-channel resistance, and
      CPU-specific SIMD implementations for more speed.
    • Standard base64 per the RFC is available via DEFAULT_ENGINE. To use different alphabets or other settings (
      padding, etc), create your own engine instance.
  • CharacterSet is now Alphabet (per the RFC), and allows creating custom alphabets. The corresponding tables that
    were previously code-generated are now built dynamically.
  • Since there are already multiple breaking changes, various functions are renamed to be more consistent and
    discoverable.
  • MSRV is now 1.47.0 to allow various things to use const fn.
  • DecoderReader now owns its inner reader, and can expose it via into_inner(). For symmetry, EncoderWriter can do
    the same with its writer.
  • encoded_len is now public so you can size encode buffers precisely.

Configuration

📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Dependency Upgrades from Renovate Bot label Dec 10, 2022
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.20.0 Update Rust crate base64 to 0.20.0 Dec 17, 2022
@renovate renovate bot changed the title Update Rust crate base64 to 0.20.0 fix(deps): update rust crate base64 to 0.20.0 Dec 17, 2022
@renovate renovate bot force-pushed the renovate/base64-0.x branch 4 times, most recently from 74a03bc to 60a7510 Compare December 27, 2022 06:29
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.20.0 fix(deps): update rust crate base64 to 0.21.0 Jan 8, 2023
@renovate renovate bot force-pushed the renovate/base64-0.x branch from 60a7510 to 907f088 Compare January 8, 2023 17:00
@renovate renovate bot force-pushed the renovate/base64-0.x branch 10 times, most recently from 6f7db6a to dffffba Compare March 29, 2023 05:50
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from 6014c50 to 8d811b1 Compare April 2, 2023 08:26
@renovate renovate bot force-pushed the renovate/base64-0.x branch 3 times, most recently from cc80d4f to dc9cd5e Compare April 12, 2023 02:12
@renovate renovate bot force-pushed the renovate/base64-0.x branch 4 times, most recently from 2828e06 to e2a4278 Compare April 25, 2023 15:47
@renovate renovate bot force-pushed the renovate/base64-0.x branch from e2a4278 to f1fae79 Compare May 11, 2023 10:09
@renovate renovate bot force-pushed the renovate/base64-0.x branch from f1fae79 to 28f46a4 Compare May 22, 2023 03:09
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.21.5 fix(deps): update rust crate base64 to 0.21.6 Jan 8, 2024
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from deb7415 to 3144126 Compare January 11, 2024 19:56
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.21.6 fix(deps): update rust crate base64 to 0.21.7 Jan 11, 2024
@renovate renovate bot force-pushed the renovate/base64-0.x branch 3 times, most recently from d7d6c43 to e946ded Compare January 27, 2024 00:54
@renovate renovate bot force-pushed the renovate/base64-0.x branch 4 times, most recently from 2a5cce4 to 45f8d28 Compare February 22, 2024 04:24
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from 6b6b51e to 01929e2 Compare March 2, 2024 01:43
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.21.7 fix(deps): update rust crate base64 to 0.22.0 Mar 2, 2024
@renovate renovate bot enabled auto-merge (squash) March 20, 2024 14:37
@renovate renovate bot force-pushed the renovate/base64-0.x branch from 01929e2 to c356542 Compare March 29, 2024 01:28
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from f91cb54 to 920d7b9 Compare April 18, 2024 01:09
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from 9fe357e to 3940931 Compare May 1, 2024 00:58
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.22.0 fix(deps): update rust crate base64 to 0.22.1 May 1, 2024
@renovate renovate bot force-pushed the renovate/base64-0.x branch 3 times, most recently from 6b1d4f8 to 3faa7a7 Compare May 5, 2024 10:49
@renovate renovate bot changed the title fix(deps): update rust crate base64 to 0.22.1 fix(deps): update rust crate base64 to 0.22.0 May 5, 2024
@renovate renovate bot force-pushed the renovate/base64-0.x branch 2 times, most recently from 452d84d to 5412a44 Compare May 19, 2024 20:16
@renovate renovate bot force-pushed the renovate/base64-0.x branch from 5412a44 to 7909c97 Compare July 6, 2024 00:11
@renovate renovate bot force-pushed the renovate/base64-0.x branch from 7909c97 to cda7a2c Compare September 2, 2024 22:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Dependency Upgrades from Renovate Bot
Development

Successfully merging this pull request may close these issues.

0 participants