Closed jakmeier closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 70.21%. Comparing base (
f3287d3
) to head (befcb8d
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The breaking changes in borsh in 1.1 and 1.2 don't affect us.
WDYM by "breaking changes"? These releases are semver-compatible and the release notes do not mention any breaking changes either.
Right, there are no breaking changes, only added features. My bad for mixing up major and minor semver changes and terminology.
Updating
Cargo.toml
to a semver compatible version cannot break downstream users like that unless the dependency being upgraded is badly behaved. It'll force them to update their lock-files to a more recent version, and that's it.
I was referring to the dependency update, which IIRC may sometimes cause annoying dependency conflicts. But yeah, maybe I was overthinking it.
Since we're not going to be testing compilation for
-Zminimal-versions
, borsh 1.0 or borsh 1.1, there will be nothing that prevents us from eventually getting e.g. ordered_float into our published crates. TheCargo.toml
dependency will need to be raised as these new features start getting used at that time.However, since there aren't any uses in this PR, I don't think it is necessary to do it now.
I'm going to make use of ordered_float very soon in #11716. I guess you are saying I should bump the dependency in the workspace TOML in that PR?
Using borsh 1.2 for nearcore workspace allows to use the ordered-float crate.
Note that I didn't update the Cargo.toml requirements, hence it won't require dependency updates on published crates from this repo.
The new features changes in borsh in 1.1 and 1.2 don't affect us and are backwards compatible changes according to semver rules.