NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2678 most downloaded on crates.io
Lightweight high-performance pure-rust transactional embedded database.
Latest stable
0.34.7
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 1.9 years
Some releases are documented
notes for 26 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
9 years old
105 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
## Bug Fixes * #1314 Fix a bug in Subscriber's Future impl.
## Improvements * documentation improved
## Improvements * #1164 widen some trait bounds on trees and batches
## New Features * #1151 Send is implemented for Iter * #1167 added Tree::first and Tree::last functions to retrieve the first or last items in a Tree,
Send is implemented for IterTree::first and Tree::last functions
to retrieve the first or last items in a Tree, unless
the Tree is empty.Db instance will no-longer
prematurely shut-down the background flusher
thread.## New Features * #1146 added TransactionalTree::generate_id
TransactionalTree::generate_id## Improvements * #1133 transactions and writebatch performance has been significantly improved by removing a bottleneck in the atomic batch stability
## New Features * #1136 Added the TransactionalTree::flush method to flush the underlying database after the transaction commits and before the transa
TransactionalTree::flush method to
flush the underlying database after the transaction
commits and before the transaction returns.## Improvements * #1132 implemented From for io::Error to reduce friction in some situations. ## Breaking Changes * #1131 transactions performed on Tr
Trees from different
Dbs will now safely fail.## Breaking Changes * #1125 the backtrace crate has been made optional, which cuts several seconds off compilation time, but may cause breakage if you
Tree::pop_min and Tree::pop_max had a bug where
they were not atomic.## New Features * #1116 IVec::subslice has been added to facilitate creating zero-copy subsliced IVecs that are backed by the same data. ## Bug Fixes
IVec::subslice has been added to facilitate
creating zero-copy subsliced IVecs that are backed
by the same data.ref keyword
on a Copy type in a pattern match in IVec::as_mut.Box<[u8]> to IVec are fixed.A large number of crash consistency issues have been discovered during intensive testing and fixed.
Transactional is now implemented for
[&Tree] and [Tree] so you can avoid the
previous friction of using tuples, as was
necessary previously.Subscriber now implements Future (non-fused)
so prefix watching may now be iterated over via
while let Some(event) = (&mut subscriber).await {}IVec where it
works similarly to a Cow, making a private copy
if the backing Arc's strong count is not 1.doc module
exported in lib.segment_size from 8m to 512k.
This will result in far smaller database files due
to better file garbage collection granularity.Config options that will be
removed over time.transaction module away from
the library root to keep the top level docs clean.TransactionalTree::apply_batch now accepts
its argument by reference instead of by value.Event has been changed to make the inner fields
named instead of anonymous.Nothing published for this version
# 0.31 ## Improvements * #947 dramatic read and recovery optimizations * #921 reduced the reliance on locks while performing multithreaded IO on windo
sync_file_range on linux instead
of a full fsync for most writes.rio crateu64. This dramatically reduces the written
bytes for databases that store small keys and
values.* Documentation-only release
Added the open function for quickly opening a database at a path with default configuration.
open function for quickly opening a database at a path with default configuration.Fixed an issue where an idle threadpool worker would spin in a hot loop until work arrived
much faster compile speeds after aggressive dependency pruning
The create_new option has been added to Config, allowing the user to specify that a database should only be freshly created, rather than re-opened.
create_new option has been added
to Config, allowing the user to specify
that a database should only be freshly
created, rather than re-opened.Fixed a bug where prefix encoding could be incorrectly handled when merging nodes together.
The Config::build and Db::start methods are now deprecated in favor of calling Config::open directly
Config::open method has been added to give
Config a similar feel to std's fs::OpenOptions.
The Config::build and Db::start methods are
now deprecated in favor of calling Config::open
directlychecksum method has been added to Tree and Db
for use in verifying backups and migrations.TransactionError::Abort variant has had
a generic member added that can be returned
as a way to return information from a
manually-aborted transaction. An abort helper
function has been added to reduce the boiler-
plate required to return aborted results.ConfigBuilder structure has been removed
in favor of a simplified Config structure
with the same functionality.cas method is deprecated in favor of the new
compare_and_swap method which now returns the
proposed value that failed to be applied.io_buf_size configurable renamed to
segment_size.io_buf_size configurable method has been
removed from ConfigBuilder. This can be manually
set by setting the attribute directly on the
ConfigBuilder, but this is discouraged.
Additionally, this must now be a power of 2.page_consolidation_threshold method has been
removed from ConfigBuilder, and this is now
a constant of 10.Iter no longer has a lifetime parameter.
Iter no longer has a lifetime parameter.Db::open_tree now returns a Tree instead of
an Arc<Tree>. Tree now has an inner type that
uses an Arc, so you don't need to think about it.Event::Set has been renamed to Event::Insert and Event::Del has been renamed to Event::Remove. These names better align with the methods of BTreeMap f
Event::Set has been renamed to Event::Insert and
Event::Del has been renamed to Event::Remove. These
names better align with the methods of BTreeMap from
the standard library.flush_async has been added to perform time-intensive
flushing in an asynchronous manner, returning a Future.Nothing published for this version
Nothing published for this version
Transactions! You may now call Tree::transaction and perform reads, writes, and deletes within a provided closure with a TransactionalTree argument. T
Tree::transaction and
perform reads, writes, and deletes within a provided
closure with a TransactionalTree argument. This
closure may be called multiple times if the transaction
encounters a concurrent update in the process of its
execution. Transactions may also be used on tuples of
Tree objects, where the closure will then be
parameterized on TransactionalTree instances providing
access to each of the provided Tree instances. This
allows you to atomically read and modify multiple
Tree instances in a single atomic operation.
These transactions are serializable, fully ACID,
and optimistic.Tree::apply_batch allows you to apply a BatchTransactionalTree::apply_batch allow you to
apply a Batch from within a transaction.Tree::batch has been removed. Now you can directly
create a Batch with Batch::default() and then apply
it to a Tree with Tree::apply_batch or during a
transaction using TransactionalTree::apply_batch.
This facilitates multi-Tree batches via transactions.Event::Merge has been removed, and Tree::merge will
now send a complete Event::Set item to be distributed
to all listening subscribers.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release brings big improvements to the underlying GC system for keeping file sizes under control, as well as some optimizations for the writepath
This release brings big improvements to the underlying GC system for keeping file sizes under control, as well as some optimizations for the writepath.
One column per quarter.