rusty-leveldb

Crates.iorusty-leveldb
lib.rsrusty-leveldb
version3.0.2
sourcesrc
created_at2017-10-12 20:24:54.635494
updated_at2024-11-12 18:30:34.136914
descriptionA compatible re-implementation of LevelDB in Rust
homepagehttps://github.com/dermesser/leveldb-rs
repositoryhttps://github.com/dermesser/leveldb-rs
max_upload_size
id35449
size428,099
Lewin Bormann (dermesser)

documentation

README

leveldb-rs

crates.io

A fully compatible implementation of LevelDB in Rust. (any incompatibility is a bug!)

The implementation is very close to the original; often, you can see the same algorithm translated 1:1, and class (struct) and method names are similar or the same.

NOTE: I do not endorse using this library for any data that you care about. I do care, however, about bug reports.

Status

Working fairly well. Please file an issue if you encounter problems.

Goals

Some of the goals of this implementation are

  • As few copies of data as possible; most of the time, slices of bytes (&[u8]) are used. Owned memory is represented as Vec<u8> (and then possibly borrowed as slice). Zero-copy is not always possible, though, and sometimes simplicity is favored.
  • Correctness -- self-checking implementation, good test coverage, etc. Just like the original implementation.
  • Clarity; commented code, clear structure (hopefully doing a better job than the original implementation).
  • Coming close-ish to the original implementation; clarifying the translation of typical C++ constructs to Rust, and doing a better job at helping understand the internals.
Commit count: 630

cargo fmt