Skip to content

chore(deps): bump redb from 4.6.0 to 5.0.0 - #385

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/redb-5.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/redb-5.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps redb from 4.6.0 to 5.0.0.

Release notes

Sourced from redb's releases.

5.0.0

Breaking changes

The encoding of Option<&str>, Option<String>, Option<bool>, and Option<char> has been changed to optimize the storage of these types. The new encoding is not compatible with the one used in prior versions. Tables that contain these Option types, and were created prior to version 5.0, will fail to open with TableTypeMismatch. To load them, wrap the inner type in the new Legacy type. For example, TableDefinition<u64, Option<&str>> becomes TableDefinition<u64, Option<Legacy<&str>>>. This also applies to an Option that is nested inside another type, such as a tuple. The recommended pattern to migrate is to create a new table, and then copy the data from the old table to the new table.

Important: If you have implemented Value for your own type, and its encoding uses Option<&str>, Option<String>, Option<bool>, or Option<char> (including inside a Vec, array, or tuple), redb cannot detect the change and will silently misread existing tables. Change the implementation to use Option<Legacy<T>> to read existing tables, and use a new TypeName for the new encoding.

A number of other APIs have changed in breaking ways:

  • Remove the inherent get() and range() methods of ReadOnlyTable and ReadOnlyMultimapTable. They returned 'static guards and iterators, which did not keep the transaction alive. Use the methods on ReadableTable and ReadableMultimapTable instead, or get_owned() and range_owned() if the result must outlive the table.
  • Change Range and MultimapRange to borrow the table until they are dropped. Mutating a table while a range over it is still in scope could panic, and is now a compile error.
  • Change Entry, OccupiedEntry, and VacantEntry to take a second lifetime, for the key, which no longer needs to live as long as the borrow of the table.
  • Change FileBackend::new() to return FileBackend instead of a Result.
  • Change ReadableTable::lower_bound() and ReadableTable::upper_bound() to be required methods.
  • Change ReadableDatabase to be a sealed trait.
  • Remove Table::extract_from_if(). Use extract_if() instead.
  • Change Table::extract_if() to take a range as its first argument, like BTreeMap::extract_if(). Use extract_if(.., predicate) to visit the whole table.
  • Remove Builder::create_file(). Use Builder::create_with_backend(FileBackend::new(file)) instead.
  • Remove WriteTransaction::print_allocated_page_debug().
  • Remove From<PoisonError<T>> for StorageError and Error.
  • Change range(), range_owned(), retain_in(), and extract_if() to take a KeyRange instead of a RangeBounds. The key type no longer needs to be specified. For example, table.range::<u64>(..) becomes table.range(..).
  • Change the I/O methods of StorageBackend to return BackendError instead of io::Error. An io::Error can still be converted with ?. Note that an io::Error of kind Unsupported is now converted to BackendError::Io instead of BackendError::Unsupported. Lock methods may return either to indicate that locking is not supported.
  • Change the TableTypeMismatch and TypeDefinitionChanged variants of TableError and Error to contain a Box. Their fields are replaced by methods on the new TableTypeMismatch and TypeDefinitionInfo structs.
  • Change Database::compact() to take a CompactionMode, which selects how thoroughly to compact. Use compact(CompactionMode::Balanced) to compact as before.
  • Remove the chrono_v0_4 feature, because the chrono crate is no longer maintained. To read existing tables of its types, implement Value and Key for a type of your own with the same TypeName and encoding.

... (truncated)

Changelog

Sourced from redb's changelog.

5.0.0 - 2026-11-18

Breaking changes

The encoding of Option<&str>, Option<String>, Option<bool>, and Option<char> has been changed to optimize the storage of these types. The new encoding is not compatible with the one used in prior versions. Tables that contain these Option types, and were created prior to version 5.0, will fail to open with TableTypeMismatch. To load them, wrap the inner type in the new Legacy type. For example, TableDefinition<u64, Option<&str>> becomes TableDefinition<u64, Option<Legacy<&str>>>. This also applies to an Option that is nested inside another type, such as a tuple. The recommended pattern to migrate is to create a new table, and then copy the data from the old table to the new table.

Important: If you have implemented Value for your own type, and its encoding uses Option<&str>, Option<String>, Option<bool>, or Option<char> (including inside a Vec, array, or tuple), redb cannot detect the change and will silently misread existing tables. Change the implementation to use Option<Legacy<T>> to read existing tables, and use a new TypeName for the new encoding.

A number of other APIs have changed in breaking ways:

  • Remove the inherent get() and range() methods of ReadOnlyTable and ReadOnlyMultimapTable. They returned 'static guards and iterators, which did not keep the transaction alive. Use the methods on ReadableTable and ReadableMultimapTable instead, or get_owned() and range_owned() if the result must outlive the table.
  • Change Range and MultimapRange to borrow the table until they are dropped. Mutating a table while a range over it is still in scope could panic, and is now a compile error.
  • Change Entry, OccupiedEntry, and VacantEntry to take a second lifetime, for the key, which no longer needs to live as long as the borrow of the table.
  • Change FileBackend::new() to return FileBackend instead of a Result.
  • Change ReadableTable::lower_bound() and ReadableTable::upper_bound() to be required methods.
  • Change ReadableDatabase to be a sealed trait.
  • Remove Table::extract_from_if(). Use extract_if() instead.
  • Change Table::extract_if() to take a range as its first argument, like BTreeMap::extract_if(). Use extract_if(.., predicate) to visit the whole table.
  • Remove Builder::create_file(). Use Builder::create_with_backend(FileBackend::new(file)) instead.
  • Remove WriteTransaction::print_allocated_page_debug().
  • Remove From<PoisonError<T>> for StorageError and Error.
  • Change range(), range_owned(), retain_in(), and extract_if() to take a KeyRange instead of a RangeBounds. The key type no longer needs to be specified. For example, table.range::<u64>(..) becomes table.range(..).
  • Change the I/O methods of StorageBackend to return BackendError instead of io::Error. An io::Error can still be converted with ?. Note that an io::Error of kind Unsupported is now converted to BackendError::Io instead of BackendError::Unsupported. Lock methods may return either to indicate that locking is not supported.
  • Change the TableTypeMismatch and TypeDefinitionChanged variants of TableError and Error to contain a Box. Their fields are replaced by methods on the new TableTypeMismatch and TypeDefinitionInfo structs.
  • Change Database::compact() to take a CompactionMode, which selects how thoroughly to compact. Use compact(CompactionMode::Balanced) to compact as before.
  • Remove the chrono_v0_4 feature, because the chrono crate is no longer maintained. To read existing tables of its types, implement Value and Key for a type of your own with the same TypeName and encoding.

... (truncated)

Commits
  • 0d53424 Bump version to 5.0.0
  • f9fb0c1 Update changelog
  • 0a5d3ec Update changelog
  • 2d5fed3 Leave a branch with one child as it is in CompactionMode::Maximum
  • 71606ce Pack multimap subtrees in CompactionMode::Maximum
  • 402980e Merge the branches of each table in CompactionMode::Maximum
  • 765dfba Pack the leaves of each table in CompactionMode::Maximum
  • 460a866 Add CompactionMode::Maximum, without packing yet
  • b3e8ab8 Remove the chrono_v0_4 feature
  • d0ec1c4 Make compact() take a CompactionMode
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 23, 2026
@mergify

mergify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 3 protections blocking · waiting on 🤖 CI

Protection Waiting on
🔴 Full CI must pass 🤖 CI
🟢 Do not merge outdated PRs —
🟢 🚦 Auto-queue —

🔴 Full CI must pass

Waiting for

  • check-success = coverage
  • check-success = quality
  • check-success = test
  • check-success = test-cross-platform (macos-15, macOS)
  • check-success = test-cross-platform (ubuntu-22.04, Linux)
  • check-success = test-cross-platform (windows-2022, Windows)
This rule is failing.

All CI checks must pass. Activates for non-bot authors, or dependabot when files exist outside .github/workflows/.

  • check-success = coverage
  • check-success = quality
  • check-success = test
  • check-success = test-cross-platform (macos-15, macOS)
  • check-success = test-cross-platform (ubuntu-22.04, Linux)
  • check-success = test-cross-platform (windows-2022, Windows)
  • check-success = DCO

Show 2 satisfied protections

🟢 Do not merge outdated PRs

Make sure PRs are within 3 commits of the base branch before merging

  • #commits-behind <= 3

🟢 🚦 Auto-queue

When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.

  • any of:
    • all of:
      • author = dependabot[bot]
      • base = main
      • label != do-not-merge
    • all of:
      • author = dosubot[bot]
      • base = main
      • label != do-not-merge
    • all of:
      • -files ~= ^(?!\.github/workflows/)
      • author = dependabot[bot]
      • base = main
      • label != do-not-merge

mergify[bot]
mergify Bot previously approved these changes Nov 23, 2026

@mergify mergify Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approved by Mergify

@unclesp1d3r unclesp1d3r self-assigned this Nov 28, 2026
@unclesp1d3r

Copy link
Copy Markdown
Member

@dependabot recreate

Bumps [redb](https://github.com/cberner/redb) from 4.6.0 to 5.0.0.
- [Release notes](https://github.com/cberner/redb/releases)
- [Changelog](https://github.com/cberner/redb/blob/master/CHANGELOG.md)
- [Commits](cberner/redb@v4.6.0...v5.0.0)

---
updated-dependencies:
- dependency-name: redb
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump redb from 4.5.0 to 5.0.0 chore(deps): bump redb from 4.6.0 to 5.0.0 Nov 29, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/redb-5.0.0 branch from f76c694 to ecbe15f Compare November 29, 2026 18:46

@mergify mergify Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approved by Mergify

This branch has not been deployed

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

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant