build(deps): bump base64 from 0.20.0 to 0.21.0
Bumps base64 from 0.20.0 to 0.21.0.
Changelog
Sourced from base64's changelog.
0.21.0
(not yet released)
Migration
Functions
< 0.20 function 0.21 equivalent encode()engine::general_purpose::STANDARD.encode()orprelude::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()orprelude::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
configreplaced withengine.Padding
If applicable, use the preset engines
engine::STANDARD,engine::STANDARD_NO_PAD,engine::URL_SAFE, orengine::URL_SAFE_NO_PAD. TheNO_PADones 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_paddingdecode_padding_modeSTANDARD STANDARD true Indifferent STANDARD_NO_PAD STANDARD false Indifferent URL_SAFE URL_SAFE true Indifferent URL_SAFE_NO_PAD URL_SAFE false Indifferent 0.21.0-rc.1
- Restore the ability to decode into a slice of precisely the correct length with
Engine.decode_slice_unchecked.- Add
Engineas apub useinprelude.0.21.0-beta.2
Breaking changes
- Re-exports of preconfigured engines in
engineare removed in favor ofbase64::prelude::...that are better suited to those who wish tousethe entire path to a name.
... (truncated)
Commits
d7fb31cv0.21.08350376Merge pull request #207 from marshallpierce/mp/api-rework726f784v0.21.0-rc.1b29ab01AddEngineinprelude64bbcc0Remove no longer needed test helpers0f981bdAdd decode_slice_unchecked to restore ability to decode into a precisely size...a51e822v0.21.0-beta.2936569aMove re-exports fromenginetoprelude53e1091Fix release notes typob03eb5av0.21.0-beta.1- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Tried update our use of base64::encode to follow what was done in https://github.com/bottlerocket-os/bottlerocket-update-operator/pull/403/files, but for some reason I am getting compile errors:
error[E0433]: failed to resolve: could not find `base64_engine` in the crate root
--> model/src/test_manager/mod.rs:70:27
|
70 | let auth = super::base64_engine::encode(format!("{}:{}", username, password));
| ^^^^^^^^^^^^^ could not find `base64_engine` in the crate root
error: unused import: `base64::engine::general_purpose::STANDARD as base64_engine`
--> model/src/test_manager/mod.rs:1:5
|
1 | use base64::engine::general_purpose::STANDARD as base64_engine;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
error: unused import: `base64::Engine as _`
--> model/src/test_manager/mod.rs:2:5
|
2 | use base64::Engine as _;
| ^^^^^^^^^^^^^^^^^^^
|
May need some help from someone with a little stronger rust knowledge than me.
I might would hold off on this one until the crates that currently use base64 0.20.0 move to 0.21.0. Seems a bit silly to pull 3 versions if there isn't an specific reason for upgrading.
We do still have to figure out what to do about base64::encode as we're going to run into this issue in our other projects as well.
It might be nice to revisit this, as more crates have moved to 0.21.0.
A newer version of base64 exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.