{"full_name":"cberner/redb","owner":"cberner","name":"redb","shard":"1","url":"https://github.com/cberner/redb","description":"An embedded key-value database in pure Rust","homepage":"https://www.redb.org","topics":["rust"],"tag_pages":["rust"],"language":"Rust","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/842688?u=0e3a545ae2bb521a1fa6e1e1db899d1f489c53ca&v=4","created_at":"2018-09-23T18:30:14Z","pushed_at":"2026-11-15T20:37:58Z","metrics":{"stars":4937,"forks":260,"watchers":23,"issues":399,"prs":1281,"releases":70,"issues_open":2,"issues_closed":397,"prs_open":2,"prs_closed":97,"prs_merged":1182,"discussions":0},"growth":{"day":{"stars":2,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[4918,4930,4937,4954,4931,4935,4937],"forks":[257,258,258,259,259,260,260],"watchers":[null,24,24,24,24,23,23],"issues_open":[null,2,2,2,2,1,2],"prs_open":[null,0,1,0,0,1,2]},"boards":{},"same_owner":[],"issues":[{"number":30,"title":"Add async read interface","comments":21,"created_at":"2021-07-09T04:58:07Z"},{"number":1690,"title":"A panic while a dirty page is held aborts the process from WritablePage::drop instead of surfacing","comments":1,"created_at":"2026-11-15T15:11:12Z"}],"discussions":[],"latest_release":{"name":"4.6.0","tag":"v4.6.0","published_at":"2026-11-13T19:01:15Z","body":"### Minor improvements\r\n* A new database starts at 72 KiB instead of about 1 MiB, and grows as it is written to.\r\n\r\n### Bug fixes\r\n* Fix repair falling back to a commit slot that failed its checksum, which could open a damaged\r\n  database as an empty one instead of returning `StorageError::Corrupted`.\r\n* `commit()` returns `CommitError::TransactionPoisoned` when a table opened in the transaction was\r\n  leaked, for example with `mem::forget()`, instead of committing a corrupted database.\r\n* `MultimapTable::insert()` and `MultimapTable::remove()` poison the write transaction if the key\r\n  or value type panics part way through, instead of leaving a transaction that commits a corrupted\r\n  table.\r\n* Fix `begin_read()` on a `SingleWriter` or `MultiWriter` database failing with\r\n  `StorageError::Corrupted` while an `ExclusiveWriter` open of the same file was being refused.\r\n* Fix `compact()` on a `SingleWriter` or `MultiWriter` database returning\r\n  `CompactionError::TransactionInProgress` while a read-only `ExclusiveWriter` open of the same file\r\n  was being refused.\r\n* When a lock on a `SingleWriter` or `MultiWriter` database cannot be released, later operations\r\n  on that database return `StorageError::PreviousIo` until it is closed, which releases the lock.\r\n  Before, the database kept working while the other processes sharing the file were blocked.\r\n* Fix a read-only open in `SingleWriter` or `MultiWriter` mode accepting a database that needs\r\n  repair, instead of returning `DatabaseError::RepairAborted`, while a read-only `ExclusiveWriter`\r\n  open of the same file was in progress.\r\n* Fix a refused read-only `ExclusiveWriter` open disturbing the `SingleWriter` or `MultiWriter`\r\n  handles of the same file: `try_begin_write()` could return `TransactionError::WouldBlock`, a\r\n  `MultiWriter` open `DatabaseError::DatabaseAlreadyOpen`, and closing the last handle could leave\r\n  the database needing repair, so that read-only opens returned `DatabaseError::RepairAborted`.\r\n* Fix `ReadOnlyDatabase::open()` failing with `DatabaseError::DatabaseAlreadyOpen` beside another\r\n  read-only handle, while a `SingleWriter` or `MultiWriter` open of the same file was being refused.\r\n* Fix a `MultiWriter` process aborting the next time its write transaction grew the file, after a\r\n  write transaction in another process had grown it and then ended without a commit, because that\r\n  process was killed or a panic dropped the transaction.\r\n* Fix `check_integrity()` returning `Ok(false)` for an undamaged database that had grown to exactly\r\n  one full region, which is 4 GiB with the default settings.\r\n* Fix a read that was in progress when its database was closed returning data from a later commit,\r\n  instead of completing or returning `StorageError::DatabaseClosed`. Closing now waits for the\r\n  reads and writes in progress.\r\n* Fix `check_integrity()`, and opens that verify or repair, taking exponential time on a damaged\r\n  B-tree whose pages are shared between several parents.\r\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}