This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| base64 | dependencies | minor | 0.20.0
-> 0.21.0
|
Release Notes
marshallpierce/rust-base64
Compare Source
(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 Config
s
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 |
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.