You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
object_store 0.13.2 breaks backward compatibility in patch release #677
After updating the dependency from 0.13.1 to 0.13.2, I get this build error in arrow-rs with cargo check -p parquet --all-features:
error[E0432]: unresolved import `object_store::buffered`
--> parquet/src/arrow/async_writer/store.rs:25:19
|
25 | use object_store::buffered::BufWriter;
| ^^^^^^^^ could not find `buffered` in `object_store`
|
note: found an item that was configured out
--> /Users/mzabaluev/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/object_store-0.13.2/src/lib.rs:545:9
|
544 | #[cfg(feature = "tokio")]
| ----------------- the item is gated behind the `tokio` feature
545 | pub mod buffered;
| ^^^^^^^^
Expected behavior
Changing feature gates should be considered a breaking change not done in patch releases.
This is the 0.x.y release series, so strictly by semver, you are allowed to break anything with any release. But Cargo rules are more presumptive than that, so e.g. an object_store = 0.13.1 dependency is satisfied by 0.13.2 and fragility ensues.
This is the 0.x.y release series, so strictly by semver, you are allowed to break anything with any release.
We are allowed, but from a maintainers & community perspective that would be rather counterproductive, esp. given the size of the ecosystem that now depends on object-store. Hence we try to view 0.x+1 bumps as "new major release" and 0.x.y+1 bumps as "new minor release". That's also in line with the Cargo SemVer Compatibility guidelines which state (emphasis added by myself):
This guide uses the terms “major” and “minor” assuming this relates to a “1.0.0” release or later. Initial development releases starting with “0.y.z” can treat changes in “y” as a major release, and “z” as a minor release. “0.0.z” releases are always major changes. [...]
So back to the reported issue:
Changing feature gates should be considered a breaking change not done in patch releases.
In #644 we somewhat tried to do that, so at least if you use the default features this isn't breaking. So the issue here only applies to users of no-default-feature. I haven't seen this stated anywhere explicitly, so I've asked here:
Given the limited impact and the churn that rolling back this change would create, I'm somewhat inclined to accept this breaking change and keep that in mind for future changes.
Activity
deps: fix object_store breakage for 0.13.2
mzabaluev commentedon Mar 25, 2026
This is the 0.x.y release series, so strictly by semver, you are allowed to break anything with any release. But Cargo rules are more presumptive than that, so e.g. an
object_store = 0.13.1dependency is satisfied by 0.13.2 and fragility ensues.deps: fix `object_store` breakage for 0.13.2 (#9612)
crepererum commentedon Mar 31, 2026
We are allowed, but from a maintainers & community perspective that would be rather counterproductive, esp. given the size of the ecosystem that now depends on
object-store. Hence we try to view0.x+1bumps as "new major release" and0.x.y+1bumps as "new minor release". That's also in line with the Cargo SemVer Compatibility guidelines which state (emphasis added by myself):So back to the reported issue:
In #644 we somewhat tried to do that, so at least if you use the default features this isn't breaking. So the issue here only applies to users of
no-default-feature. I haven't seen this stated anywhere explicitly, so I've asked here:obi1kenobi/cargo-semver-checks#1617
Given the limited impact and the churn that rolling back this change would create, I'm somewhat inclined to accept this breaking change and keep that in mind for future changes.