#rocksdb #ffi #bindings

sys rust-librocksdb-sys

Native bindings to librocksdb

28 releases (breaking)

new 0.37.0+10.2.1 Apr 30, 2025
0.35.0+10.0.1 Apr 1, 2025
0.34.0+9.11.2 Mar 31, 2025
0.31.0+9.9.3 Dec 17, 2024
0.19.2+9.0.0 Mar 30, 2024

#2739 in Database interfaces

Download history 1821/week @ 2025-01-07 1040/week @ 2025-01-14 1248/week @ 2025-01-21 1556/week @ 2025-01-28 1850/week @ 2025-02-04 1839/week @ 2025-02-11 2162/week @ 2025-02-18 2005/week @ 2025-02-25 2460/week @ 2025-03-04 1899/week @ 2025-03-11 2316/week @ 2025-03-18 773/week @ 2025-03-25 406/week @ 2025-04-01 434/week @ 2025-04-08 581/week @ 2025-04-15 299/week @ 2025-04-22

1,837 downloads per month
Used in 4 crates (via rust-rocksdb)

MIT/Apache-2.0/BSD-3-Clause

23MB
477K SLoC

C++ 416K SLoC // 0.1% comments Java 43K SLoC // 0.3% comments Python 8K SLoC // 0.1% comments Shell 4K SLoC // 0.2% comments C 3.5K SLoC // 0.0% comments GNU Style Assembly 543 SLoC // 0.1% comments Rust 464 SLoC // 0.1% comments INI 317 SLoC // 0.1% comments PowerShell 313 SLoC // 0.2% comments Bitbake 168 SLoC // 0.2% comments Bazel 123 SLoC // 0.5% comments BASH 19 SLoC

RocksDB bindings

Low-level bindings to RocksDB's C API.

Based on the original work by Tyler Neely https://github.com/rust-rocksdb/rust-rocksdb and Jeremy Fitzhardinge https://github.com/jsgf/rocksdb-sys

Version

The librocksdb-sys version number is in the format X.Y.Z+RX.RY.RZ, where X.Y.Z is the version of this crate and follows SemVer conventions, while RX.RY.RZ is the version of the bundled rocksdb.

Dependencies

~0–4.5MB
~79K SLoC