rust-librdb
Rust wrapper for librdb, the Redis RDB file parser.
Parses RDB dump files and delivers Redis data types (strings, lists, hashes, sets, sorted sets, streams) through a callback trait, without loading the entire file into memory.
| Crate | Description |
|---|---|
librdb |
Safe, high-level wrapper |
librdb-sys |
Raw FFI bindings |
Installation
[]
= "0.1"
By default, librdb is compiled from the vendored source (git submodule). A C compiler is required.
Linking options
| Method | How |
|---|---|
| Source build (default) | No extra steps |
| System shared library | --features librdb-sys/dynamic-linking |
| Pre-built static library | Set DEP_LIBRDB_STATIC_ROOT, use --features librdb-sys/static-linking |
Example
use ;
&[u8] callback parameters borrow directly from librdb's internal buffer and
are only valid for the duration of the callback. Clone if you need to retain
the data.
License
MIT