-
Notifications
You must be signed in to change notification settings - Fork 56
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
impl WriteBase32 for Vec<u5>
show cannot fail
#43
impl WriteBase32 for Vec<u5>
show cannot fail
#43
Conversation
3d01211
to
f9000a4
Compare
Hi, great idea! Afaik constructing a void type is quite straight forward, maybe we could implement it ourselves instead of relying on a dependency? Otherwise this would increase the auditing effort/attack surface. |
Implementing ones own
|
Pinning the version tightly without a cryptographic hash of the crate is even worse imo. You loose out on bug fixes while it's still possible to get pwned (not by the author, but crates.io or AWS). So how badly is this feature needed irl (I totally see the theoretical appeal)? Can we just wait for The only drawback seems to be unnecessary @clarkmoody what do you think? It's kind of a borderline case imo since we'd use a big part of a very small crate, so the additional auditing effort would be small compared to inlining it. |
Yes, sorry, that is absolutely correct. Would be ideal if there is a tool to go over a lockfile with some sort of audit whitelist. |
Yeah, unfortunately by implementing this ourselves we'd lose a ton of interop benefits. I'm pretty tempted by this, even though I'm generally pretty dependency-averse. |
If we can wait on stabilization of |
That might be a very long time to wait :( If it got stabilized in the next version that doesn't mean we can use it the next time we bump our min version (e.g. if we want to target debian stable/oldstable that could take some time to propagate there). |
What about using |
I am afraid Infallible is introduced in 1.34 which is still after our MSRV 1.29 |
I think we can just bump the MSRV. There was some previous agreement to move the rust-bitcoin ecosystem to 1.36 once it was 2 years old (which it is now). rust-bitcoin/rust-bitcoin#510 (comment) |
RIght, it's small extra dep vs bump MSRV. I am fine either way, just please pick your poison :). |
If you do end up going the bumping MSRV route, I will happily fix up #44 to switch to newer edition too. |
I would rather bump MSRV than add a dependency. |
OK that is done instead. |
Heads up that rust-bitcoin is at least one major version away from also bumping its MSRV, so if we merge this now, it may complicate our dependency management for a bit. See discussion in rust-bitcoin/rust-bitcoin#510 |
The changes to |
We now have an MSRV of 1.41.1 so can use |
Use void::Void, which in uninhabited, to do this.
82cfc37
to
cc50e7d
Compare
Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK cc50e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK cc50e7d
Thanks! |
37d285c Run fuzzer in CI (Tobin C. Harding) bd4e8e2 Rename travis-fuzz.sh to fuzz.sh (Tobin C. Harding) 18214b2 Do not manually check for ascii range (Tobin C. Harding) Pull request description: As we do in `rust-bitcoin` run the fuzzer for each PR and each push. Fix: #43 ACKs for top commit: apoelstra: ACK 37d285c Tree-SHA512: d98fcc970f46d34e0b9331643648684ef77787e3e21d25884c093d9f049f8a60b09b6d4771f73230ced57db93fd92810e58f342bcca2ed36dcbb9bab7abd79e3
Use void::Void, which in uninhabited, to do this.