Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump base64 from 0.13.1 to 0.21.0 #1081

Merged
merged 3 commits into from Jan 15, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 9, 2023

Bumps base64 from 0.13.1 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() 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

0.21.0-rc.1

  • Restore the ability to decode into a slice of precisely the correct length with Engine.decode_slice_unchecked.
  • Add Engine as a pub use in prelude.

0.21.0-beta.2

Breaking changes

  • Re-exports of preconfigured engines in engine are removed in favor of base64::prelude::... that are better suited to those who wish to use the entire path to a name.

... (truncated)

Commits
  • d7fb31c v0.21.0
  • 8350376 Merge pull request #207 from marshallpierce/mp/api-rework
  • 726f784 v0.21.0-rc.1
  • b29ab01 Add Engine in prelude
  • 64bbcc0 Remove no longer needed test helpers
  • 0f981bd Add decode_slice_unchecked to restore ability to decode into a precisely size...
  • a51e822 v0.21.0-beta.2
  • 936569a Move re-exports from engine to prelude
  • 53e1091 Fix release notes typo
  • b03eb5a v0.21.0-beta.1
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @zonyitoo.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 9, 2023
@dependabot dependabot bot force-pushed the dependabot/cargo/base64-0.21.0 branch from 1dbaff2 to 83760dd Compare January 13, 2023 08:02
Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.13.1 to 0.21.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](marshallpierce/rust-base64@v0.13.1...v0.21.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/base64-0.21.0 branch from 83760dd to 909c472 Compare January 13, 2023 08:21
This PR tries to deal with API change when bumping base64 to 0.21.

- base64 v0.21.0 docs: https://docs.rs/base64/0.21.0/base64/index.html
- base64 v0.13.1 docs: https://docs.rs/base64/0.13.1/base64/index.html
@zonyitoo zonyitoo closed this Jan 15, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 15, 2023

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.

@dependabot dependabot bot deleted the dependabot/cargo/base64-0.21.0 branch January 15, 2023 13:10
@zonyitoo zonyitoo restored the dependabot/cargo/base64-0.21.0 branch January 15, 2023 13:12
@zonyitoo zonyitoo reopened this Jan 15, 2023
@zonyitoo
Copy link
Collaborator

I think you have missed one encode_config, checkout the CI build result @zedifen

- replace full STANDARD path with use statement
@zonyitoo
Copy link
Collaborator

@dependabot squash and merge

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 15, 2023

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@zonyitoo zonyitoo merged commit 5430fec into master Jan 15, 2023
@zonyitoo zonyitoo deleted the dependabot/cargo/base64-0.21.0 branch January 15, 2023 14:50
@zedifen
Copy link
Contributor

zedifen commented Jan 15, 2023

I think you have missed one encode_config, checkout the CI build result.

@zonyitoo Sorry, my mistake 😥. I did ran cargo build --release and it succeeded, maybe something went wrong as I might have modified the code while it's still compiling.

And thanks for your correction 430b305!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants