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

crates.io metadata, status #15

Open
andrewbaxter opened this issue Jan 7, 2023 · 3 comments
Open

crates.io metadata, status #15

andrewbaxter opened this issue Jan 7, 2023 · 3 comments

Comments

@andrewbaxter
Copy link

I'm interested in using this, but how feature complete is it/what's the development status? Is it usable?

There's no readme so I'd normally assume it's just a dump of a WIP personal repo, but given the repo owner and the scope of the crate (and the fact that there's a crates.io release) I think that might be incorrect. If this is nominally usable, would you mind adding a readme mentioning that?

Also, right now there's no link to the github repository on crates.io. It makes it hard to find if there's discussion, open issues, what the development status is, etc. Would you mind adding the repository link to the crates.io metadata?

@That3Percent
Copy link
Contributor

how feature complete is it/what's the development status? Is it usable?

stable-hash is feature complete and used in production within The Graph. I don't always have time for maintenance and feature requests, but would likely at least make time to review PRs.

would you mind adding a readme
Would you mind adding the repository link to the crates.io metadata

I'm currently OOO but will add this to my TODO list, thanks.

This crate is fairly esoteric and as far as I know, a novel approach to structured hashing and was custom built for a particular purpose. So, out of curiosity... what is your intended use-case?

@andrewbaxter
Copy link
Author

andrewbaxter commented Jan 8, 2023

Oh thanks! That's great to hear! No rush, just knowing that you're amenable to these changes gives me the confidence to try this out.

It's possible I misunderstood the use case... I have an object tree describing a database schema and need to generate a hash of the current schema for migration management, detecting if already-applied database schemas were modified.

The standard Hash isn't portable and is kind of a black box so I can't use that. Apparently rustc has a "StableHash" internally (I think for detecting if recompilation is needed?) but they haven't published it. There are various discussions for similar tools around: https://internals.rust-lang.org/t/make-hasher-portable-mini-rfc/7927/1 and RustCrypto/hashes#29 for example

I've previously needed similar tools to detect if inputs to a complex process had changed requiring re-running, but I wasn't using Rust at the time.

@That3Percent
Copy link
Contributor

Great, thanks for elaborating on your use-case. I think this could work well for you, but let me know how it goes either way.

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

No branches or pull requests

2 participants