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

Update rand_core to 0.6 #338

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

PaulGrandperrin
Copy link
Contributor

https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md
This new version makes using rand_core on wasm seamless (thanks to the update of getrandom to v0.2)
The crate compiles well with this PR, but since some rand_core traits are publicly exposed in this crate's API, this is strictly speaking a breaking change.

@PaulGrandperrin
Copy link
Contributor Author

it'll be very useful for a crate like https://github.com/novifinancial/opaque-ke to be used in a browser

@PaulGrandperrin
Copy link
Contributor Author

PaulGrandperrin commented Dec 22, 2020

for info, it seems that the failed check is unrelated to this PR.

EDIT: I tested locally with and without the patch, and this test fails exactly in the same way.

@mzabaluev
Copy link

Any plans on merging this for a 4.0.x release? The old version of rand in the API is holding up some other dependency updates.

@coltfred
Copy link
Contributor

coltfred commented Jan 5, 2021

I'd also love to see a release with the rand upgrade! 👍

@isislovecruft
Copy link
Member

I'm happy to queue this for the 4.x release but I'd like to gather more breaking changes up all at once before putting out a non-alpha 4.x, since the more major series numbers we release, the more things like backporting #333 become a pain. However, we could release a 4.0.0-alpha.1 soon, even with no plan to put out the non-alpha anytime soon, if that's helpful to folks.

@isislovecruft isislovecruft added this to the 4.x milestone Jan 7, 2021
@isislovecruft isislovecruft changed the base branch from master to develop January 7, 2021 23:10
@coltfred
Copy link
Contributor

coltfred commented Jan 7, 2021

It's useful to me so we can start getting PRs up for places like ed25519 so we can make sure things all keep working downstream. Thank you so much!

https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md
This new version makes using rand_core on wasm seamless (thanks to the update of getrandom to v0.2)
The crate compiles well with this PR, but since some `rand_core` traits are publicly exposed in this crate's API, this is strictly speaking a breaking change.
@hdevalence
Copy link
Contributor

To clarify, the reason that the fix for #333 that I merged in #334 wasn't included in a point release until recently had nothing to do with the effort it requires to backport bugfixes; rather, it was because @isislovecruft silently removed all other owners of the crates they co-maintained and demoted every other member of the dalek-cryptography Github org from having admin privileges, so it was impossible for me or anyone other than them to publish the fixed version.

In the past, the curve25519-dalek major version has advanced in lockstep with the versions of the crates it includes in its public API, to minimize the pain of ecosystem incompatibility. This continues in the curve25519-dalek-ng package here, which has a version 4.0 using rand_core 0.6 available now. You can use it, or not, whichever you'd like.

@rndhouse
Copy link

rndhouse commented Feb 4, 2021

because @isislovecruft silently removed all other owners of the crates they co-maintained and demoted every other member of the dalek-cryptography Github org from having admin privileges

Is that true!? I find that really shocking. If true, what's the motivation behind that?

It seems like a very risky setup from a security point of view.

@isislovecruft
Copy link
Member

To clarify, the reason that the fix for #333 that I merged in #334 wasn't included in a point release until recently had nothing to do with the effort it requires to backport bugfixes; rather, it was because @isislovecruft silently removed all other owners of the crates they co-maintained and demoted every other member of the dalek-cryptography Github org from having admin privileges, so it was impossible for me or anyone other than them to publish the fixed version.

After receiving multiple reports of violations of the Rust Community Code of Conduct, and sadly after months of deliberation with community members, @hdevalence was demoted from admin to member. He was also removed from maintenance duties on crates.io. Contrary to his claims, all other maintainers have kept all privileges on both github and crates.io. The decision to remove him was mine: after repeatedly displaying unacceptable behaviours towards several people who spoke to me privately, and after being warned for said violations repeatedly, I refuse to continue to allow @hdevalence to hold any position of power in a community and project that I initially created. He is/was free to contribute code as a member, and to request/suggest new releases, as other maintainers and community members have already been doing. If anyone has anything else to report, or would like to know more, I am happy to discuss these matters privately, and I can be reached at [email protected] or DMs on Twitter @isislovecruft. Additionally, we are always happy to consider new maintainers, especially for members of the Rust and crypto communities who have already contributed.

@WildCryptoFox
Copy link

However, we could release a 4.0.0-alpha.1 soon, even with no plan to put out the non-alpha anytime soon, if that's helpful to folks.

@isislovecruft Yes, it would be helpful to have an -alpha release without waiting for more breaking changes.

@isislovecruft isislovecruft changed the base branch from develop to release/4.0 April 14, 2021 02:52
@isislovecruft isislovecruft merged commit c52aeb6 into dalek-cryptography:release/4.0 Apr 14, 2021
@isislovecruft
Copy link
Member

Thanks @PaulGrandperrin! This is merged and released in 4.0.0-pre.0.

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.

7 participants