Open dkg opened 3 years ago
this is with rustc 1.48.0+dfsg1-2
any word on this? This error is blocking me from uploading hashlink to debian. Maybe there's some versioned dependency that isn't clearly stated?
Looks like DefaultHashBuilder
doesn't implement Default
when it actually does? I can build the crate from cargo with 1.48.0
so this seems like a problem specific to your build setup.
seems like this might be an issue with hashbrown
, then. My attempt to build used hashbrown
0.9.1 (the version currently in debian).
Looks like i've got a bit more work ahead of me to update hashbrown
in debian to a more recent version; but perhaps this means that the hashlink
dependencies aren't correct?
The Debian hashbrown
crate seems bugged. This crate relies on hashbrown
having the ahash
feature through the use of default features. However, this patch seems to disable ahash
completely. The fallback DefaultHashBuilder
does not implement Default
, and is mostly an empty stand-in. This is why your build fails.
I don't know much about Debian but the ahash
crate has caused no end of trouble in my own codebase too, so I am not surprised to see it implicated. It intentionally generates a nondeterministic build artifact every time you invoke rustc on it... which I imagine is why Debian wants nothing to do with it.
I'm trying to package hashlink 0.6.0 for debian, and in the course of the standard debian build, I see the following two failures:
I'm not a rust expert, so if you think i'm doing something wrong here, i'm happy to get pointers to the right fix.