-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Upstream this crate to RustCrypto? #38
Comments
Happy to assist. I wrote this crate out of a necessity at the time and I haven't spent much time with it since. Let me know what you need me to do. |
A tentative plan would look something like:
I'd be happy to do the work on the initial steps |
I will try to have a look at this on the weekend. |
@mitsuhiko I was doing some work on We've done a lot of work on the RustCrypto/hashes#289 (comment) Would you consider giving us the cc @newpavlov |
@tarcieri still interested in this? |
Sure! |
Was just trying to figure out if it's feasible to make a shimmed version of this to |
@mitsuhiko we can probably shim at least parts of the old API with deprecations that provide upgrade instructions. I tried to do something similar here: RustCrypto/hashes#228 |
I might have a look tomorrow at how much work this is. But the old crate had quite a few trait bounds that apparently digests do not have in that form. (eg: it does not provide a regular |
I think it will be difficult to have inherent methods on the
Are those needed in practice? I think we could add them, but no one has asked us for them even though crates like
I agree, but it comes from:
Luckily, needs of almost all users are served by the simple
I respectfully disagree. :) Here is the list of its deps:
Yes, we intentionally do not provide any built-in formatting and instead recommend using specialized crates directly. One of the reasons is to reduce number of pulled dependencies. |
Unclear, but I can't just remove stuff from a crate that's popular and not consider existing users at all. The digest type for sure is used for comparisons right now and it's also commonly used as key in maps for content addressable stuff.
You can't argue that there it does not pull in the whole kitchen sink and then enumerate the kitchen sink. Your list of deps is not even complete. It also pulls in
Well in that effort you failed already :) Look I'm fine with you having the crate name but I'm not okay denying the existence of the code that was there before or existing users. |
So my new plan is to publish another version of sha1 0.6.1 that depends on sha1_smol which I will release today which is just a re-release of 0.6.0. That way old users will continue to have a migration within what they are used to. |
I think
It only pulls it on ARM targets, since it's the only way to detect target features with
My point is that this "kitchen sink" is mostly just stuff which which people usually copy-paste or reinvent (sometimes poorly) into their "zero-deps" crates. This is why I think that number of dependencies is a misleading metric. I think it's worth to continue discussion about migration in the PR. |
I'm going to close this issue now. This crate move to |
Hello 👋 I'm one of the devs working on the RustCrypto Project.
I was curious if you were interested in upstreaming this crate to our GitHub Org:
https://github.com/rustcrypto/hashes
Though we presently maintain a separate crate called
sha-1
, if you upstreamed this crate we would be happy to abandon our crate and maintain yours instead. We're doing something somewhat similar with theblake2
crate.Anyway, if you're interested, let us know. Thanks!
The text was updated successfully, but these errors were encountered: