-
Notifications
You must be signed in to change notification settings - Fork 256
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
sha1: switch name from sha-1 to sha1 #350
Conversation
Ideally we can figure out a transition guide for folks currently using |
If we're adventurous it would probably be possible to make a sha1 release that uses the semver trick to pull in a newer version and shim out the old types. That way even if one were not to upgrade, you only end up with one SHA1 implementation in the dependency tree. |
Regarding update instructions, I think you can simply write that users should use the
I don't think it's worth the trouble to use the semver trick or trying to implement the inherent methods. |
Let me be quite clear as the original crate author of the SHA1 crate: the change is absolutely worth it. I'm not okay with you just publishing a backwards incompatible change on the crate not considering existing users at all. I will implement the semver trick. The change is massive for people who are currently using the crate as it needs to pull in many new dependencies. The original reason for the Right now to get to the same level of support you don't just need to pull in the new rust crypto ecosystem and My suggestion is doing the following two things: I'm going to move the existing code from |
I think we had similar discussion previously and it looks like we have some sort of misunderstanding. How exactly, in your opinion publishing Frankly, I don't see a point in using the semver trick in our case. Usually it's used in cases when types and values from a crate are used as part of public API in user crates. In the case of |
To be clear: While I do not see a point in it, I do not oppose in any way you publishing |
Because existing users signed up for one specific crate with one specific behavior. I can also start publishing SHA256 under sha1 0.7.0 which would be fine by semver but not the expectation I as a user have. My proposal is the following that should make you and me happy:
|
Done. Feel free to suggest an alternative wording if you don't like the current one. |
That works for me. I will publish the shim then once I ensured it works. |
Done. The shim has been published. sha1 0.6.1 now depends on sha1-smol 1.0.0. |
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The RustCrypto project recently got control of the crate name `sha1`. This commit switches over to the new name; the old `sha-1` name is now deprecated. Details: RustCrypto/hashes#350
The `sha-1` crate doesn't get updated anymore and the `sha1` crate should be used instead (the crate only got renamed [1]) [0]: > This crate is deprecated! Use the sha1 crate instead. Note: The `sha-1` crate is currently stuck at `v0.10.1` despite the following claim to update it until v0.11: > The SHA-1 implementation was previously published as sha-1, but > migrated to sha1 since v0.10.0. sha-1 will continue to receive v0.10.x > patch updates, but will be deprecated after sha1 v0.11 release. [0]: https://crates.io/crates/sha-1 [1]: RustCrypto/hashes#350 Signed-off-by: Michael Weiss <michael.weiss@eviden.com>
The `sha-1` crate doesn't get updated anymore and the `sha1` crate should be used instead (the crate only got renamed [1]) [0]: > This crate is deprecated! Use the sha1 crate instead. Note: The `sha-1` crate is currently stuck at `v0.10.1` despite the following claim to update it until v0.11: > The SHA-1 implementation was previously published as sha-1, but > migrated to sha1 since v0.10.0. sha-1 will continue to receive v0.10.x > patch updates, but will be deprecated after sha1 v0.11 release. [0]: https://crates.io/crates/sha-1 [1]: RustCrypto/hashes#350 Signed-off-by: Michael Weiss <michael.weiss@eviden.com>
@mitsuhiko has kindly transferred ownership of
sha1
to us, so now we can publish our implementation under it instead of usingsha-1
.For user convenience, we will skip v0.7-v0.9 and will release
sha1 v0.10.0
, so the version will be synchronized withsha-1
. I plan to continue releasing v0.10.x patch versions forsha-1
in parallel withsha1
and deprecate it only aftersha1 v0.11
will be released.