Remove binary codec sv2#1952
Conversation
|
#1860 is about to deprecate the I guess we already found a workaround for any CI-blocking issues here, but just to point out that if they cause problems again, we don't need to spend too much time trying to find clever solutions |
|
we shouldn't be slipping commits titled |
There was a problem hiding this comment.
we'll need to bump MAJOR
$ cargo +stable semver-checks
Building binary_sv2 v4.0.0 (current)
Built [ 2.407s] (current)
Parsing binary_sv2 v4.0.0 (current)
Parsed [ 0.006s] (current)
Building binary_sv2 v4.0.0 (baseline)
Built [ 2.129s] (baseline)
Parsing binary_sv2 v4.0.0 (baseline)
Parsed [ 0.002s] (baseline)
Checking binary_sv2 v4.0.0 -> v4.0.0 (no change)
Checked [ 0.003s] 95 checks: 94 pass, 1 fail, 0 warn, 0 skip
--- failure function_missing: pub fn removed or renamed ---
Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.37.0/src/lints/function_missing.ron
Failed in:
function binary_sv2::clone_message, previously in file /Users/plebhash/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/binary_sv2-4.0.0/src/lib.rs:25
Summary semver requires new major version: 1 major and 0 minor checks failed
d8f5af7 to
8b07ddd
Compare
That slipped, I wanted to rebase it to other commit in the history. |
|
@plebhash whats your opinion on the rigidity? |
There was a problem hiding this comment.
Patch would be required as we updated its dependency, good point.
There was a problem hiding this comment.
As API's are not changing, so we don't need to update major and minor versions.
There was a problem hiding this comment.
hmm idk
from the perspective of someone who's using channels_sv2, does it really matter where the internal implementation details are coming from?
are we changing the behavior of anything, or just moving things around?
maybe I have some blindspot, but my first instinct here would not to bump anything
There was a problem hiding this comment.
If we don't bump PATCH here we won't update crates published to crates.io during release.
So we would keep having the old binary_sv2 on those published crates.
There was a problem hiding this comment.
I will bump the patch for them, in the same PR.
There was a problem hiding this comment.
@GitGab19 @Shourya742 we should be careful in extrapolating this into an umbrella rule where we always bump PATCH just because some dependencies were updated
handlers_sv2 is now at v0.2.1 on this repo, while the published version is still at v0.1.0... so v0.2.0 will never be published
it doesn't make sense to bump PATCH for something that hasn't been published yet
There was a problem hiding this comment.
channels_sv2 is also at v2.0.1, while the last published version is at v1.0.2, so v2.0.0 will never be published
There was a problem hiding this comment.
codec_sv2 is also at v4.0.1 while the last published version is at v3.0.1, so v4.0.0 will never be published
There was a problem hiding this comment.
Shoot, I didn't looked at the crates.io versions for them. Thanks for pointing it out.
|
I would squash a891dcc, since it's reverting something you did on this PR. Please reword commit 25f3417 which doesn't make sense (there's no stratum-common) and it's not descriptive at all. Usually, I tend to always squash fmt and clippy commits with the related changes, to not pollute git history too much. |
I am yet to restruct the history, let me do it. |
cdac329 to
7d7dad2
Compare
Should be ok now. |
cff6d54 to
311452c
Compare
a894bb5 to
e17aad2
Compare
… to binary-sv2, add a new test module for all end-to-end test and update the derive-codec-sv2 to work accordingly
e17aad2 to
b7802fd
Compare
cdfc4a5 bumped some crate versions unnecessarily see stratum-mining#1952 (comment)
cdfc4a5 bumped some crate versions unnecessarily see stratum-mining#1952 (comment)
closes: #1462