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

secrecy/zeroize: Upgrade to bytes v0.5; MSRV 1.39+ #301

Merged
merged 2 commits into from Dec 2, 2019

Conversation

tony-iqlusion
Copy link
Member

  • Removes the bytes-preview feature from zeroize
  • Upgrades secrecy to use bytes v0.5

Now that bytes v0.5 is out, I've opened a PR to upstream the Zeroize impl for BytesMut:

tokio-rs/bytes#335

Unfortunately it's no-longer possible to impl Zeroize for Bytes as of bytes v0.5, as the try_mut method was dropped in this PR:

tokio-rs/bytes#298

I have brought this up on the first PR.

In the meantime, this vendors the previous BytesMut impl of Zeroize into secrecy's SecretBytesMut type, and drops SecretBytes as it's no-longer possible to implement.

- Removes the `bytes-preview` feature from `zeroize`
- Upgrades `secrecy` to use `bytes` v0.5

Now that `bytes` v0.5 is out, I've opened a PR to upstream the `Zeroize`
impl for `BytesMut`:

tokio-rs/bytes#335

Unfortunately it's no-longer possible to impl `Zeroize` for `Bytes` as
of `bytes` v0.5, as the `try_mut` method was dropped in this PR:

tokio-rs/bytes#298

I have brought this up on the first PR.

In the meantime, this vendors the previous `BytesMut` impl of `Zeroize`
into `secrecy`'s `SecretBytesMut` type, and drops `SecretBytes` as it's
no-longer possible to implement.
`bytes` v0.5 now needs Rust 1.39.

1.39 is a pretty foundational release in terms of adding `async`/`await`
and we need to be able to target that in various ways ASAP.

Note this change is to the documented/supported/tested MSRV. Crates will
continue working on a lower-than-advertised MSRV for now.
@tony-iqlusion tony-iqlusion changed the title secrecy/zeroize: Upgrade to bytes v0.5 secrecy/zeroize: Upgrade to bytes v0.5; MSRV 1.39+ Dec 2, 2019
@tony-iqlusion tony-iqlusion merged commit 1e479ec into develop Dec 2, 2019
@tony-iqlusion tony-iqlusion deleted the bytes/v0.5 branch December 2, 2019 22:49
@tony-iqlusion tony-iqlusion mentioned this pull request Dec 3, 2019
@tony-iqlusion tony-iqlusion mentioned this pull request Dec 12, 2019
gakonst added a commit to interledger/interledger-rs that referenced this pull request Jan 15, 2020
This is done due to the recent Secrecy breaking changes induced by Bytes 0.5
tokio-rs/bytes#335
iqlusioninc/crates#301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant