Skip to content

chore(deps): bump redb to 4#73

Merged
mfw78 merged 1 commit into
developfrom
chore/deps-redb-4
Jul 1, 2026
Merged

chore(deps): bump redb to 4#73
mfw78 merged 1 commit into
developfrom
chore/deps-redb-4

Conversation

@mfw78

@mfw78 mfw78 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Fifth in the staged dependency-modernisation series (after #68, #69, #70, #71, #72).

What

Bumps redb from 2 to 4 (two majors) in [workspace.dependencies]. redb backs the per-module local-store; only the engine uses it.

One source change

redb 3 introduced a ReadableDatabase trait and relocated begin_read onto it, so local_store_redb.rs adds the import:

-use redb::{Database, TableDefinition};
+use redb::{Database, ReadableDatabase, TableDefinition};

Everything else is unchanged across 2 -> 4: Database::create, TableDefinition, open_table, insert, remove, commit, get/value, range, and all five StorageError source variants. begin_write stayed inherent.

On-disk format

redb 4 cannot open a database file written by redb 2. This is a pre-release codebase with no persistent-data guarantees, so the accepted upgrade path is to wipe the local-store directory; no in-code migration is added. Flagging for the changelog.

Testing

Verified under nix: cargo build -p nexum-engine --all-targets, clippy --all-targets -- -D warnings, cargo test -p nexum-engine (105 passed - all local-store CRUD, list_keys, namespace-isolation, persistence, and concurrent-stress tests). CI runs the full matrix.

AI Assistance

Claude Code (Opus 4.8) used for the redb 2->4 API-migration analysis and verification.

Move redb from 2 to 4 in the workspace table (local-store backend, engine only).

One source change: redb 3 relocated begin_read onto a new ReadableDatabase trait, so local_store_redb.rs imports it. Every other call site (Database::create, TableDefinition, open_table, insert, remove, commit, get/value, range) is unchanged across the two majors, and the StorageError source variants are all still present.

On-disk format note: redb 4 cannot open a database written by redb 2. This is a pre-release codebase with no persistent-data guarantees, so operators wipe the local-store directory on upgrade; no in-code migration path is added.
@mfw78 mfw78 merged commit 6af3255 into develop Jul 1, 2026
10 checks passed
@mfw78 mfw78 deleted the chore/deps-redb-4 branch July 1, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant