Skip to content

object_store 0.13.2 breaks backward compatibility in patch release #677

Open

Description

@mzabaluev-flarion

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.

Activity

  1. added
    bug
    on Mar 24, 2026
  2. mzabaluev commented on Mar 25, 2026

    @mzabaluev

    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.

  3. crepererum commented on Mar 31, 2026

    @crepererum
    Contributor

    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:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions