Cargo Features

bbolt-rs has no features set by default.

[dependencies]
bbolt-rs = { version = "1.3.10", features = ["compat", "strict", "long-tests", "test-mem-backend", "allgasnobrakes", "try-begin"] }

only for testing

compat

Stable features

Enable working with Go Bolt databases

Affects defaults::MAGIC

strict

Run database check after each commit

long-tests

Run long tests

test-mem-backend

Run tests using the memory backend

allgasnobrakes

Experimental features

The following features are experimental

Disables RefCell runtime memory guarantees. No performance gain.

⚠️Unit tests should prevent undefined behavior, but you're on your own!

try-begin

Enable try family of functions. Transactions wrapped in Option instead of blocking

Affects db::DbApi.try_begin, db::DbApi.try_begin_for, db::DbApi.try_begin_until, db::DbRwAPI.try_begin_rw, db::DbRwAPI.try_begin_rw_for, db::DbRwAPI.try_begin_rw_until