Closed tcharding closed 8 months ago
Published and yanked :( same issue.
I think I'll just try to use this version in Elements locally (I think cargo will let me use a yanked version, it'll just whine about it) and if that passes let's just do a real release.
Ok, cargo won't let me use the yanked version, but I can use my local repo.
Ok, I have two comments so far:
data_part_ascii_no_checksum
. It returns a &[u8]
(which defaults to the lifetime on &self
) but needs to return &'s [u8]
. Probably same with the other accessors. Without this fix I get borrowck errors all over the place.Fe32
iterator on CheckedHrpString
; this is the intermediate iterator used in constructing the return value of byte_iter
so it'll be easy to implement.Also it would make my life a tiny bit easier if validate_padding
and validate_witness_program_length
were pub
... but I don't think we want to do that, it'd make the API too messy and expose too many internals.
I"ll work on the points above. As far as naming, shall we just use -gamma
like you said before. This is slightly amusing that with our combined number of years writing rust we are having so much difficulty naming a new 'beta' version'.
I'm doubtful that gamma
will work when beta2
didn't, but we might as well try it!
Want to just test the new stuff locally on your end (i.e., after that new stuff above) and then just release the v0.10.0
?
Yeah, I think that's best. Next time we'll try starting with beta.0
etc and see if that works.
Ok, I have two comments so far:
- The signature is wrong on
data_part_ascii_no_checksum
. It returns a&[u8]
(which defaults to the lifetime on&self
) but needs to return&'s [u8]
. Probably same with the other accessors. Without this fix I get borrowck errors all over the place.- I would actually like a
Fe32
iterator onCheckedHrpString
; this is the intermediate iterator used in constructing the return value ofbyte_iter
so it'll be easy to implement.Also it would make my life a tiny bit easier if
validate_padding
andvalidate_witness_program_length
werepub
... but I don't think we want to do that, it'd make the API too messy and expose too many internals.
All this should be seen to now.
We just bumped the version number to
0.10.0-beta2
but that format causescargo
to automatically pull the new version. We can use0.10.1-beta.2
socargo
correctly treats it as a new separate version.