#rocksdb #ffi #bindings

sys rust-librocksdb-sys

Native bindings to librocksdb

27 releases (breaking)

new 0.36.0+10.1.3 Apr 19, 2025
0.34.0+9.11.2 Mar 31, 2025
0.31.0+9.9.3 Dec 17, 2024
0.29.0+9.7.4 Nov 1, 2024
0.19.2+9.0.0 Mar 30, 2024

#2909 in Database interfaces

Download history 639/week @ 2024-12-28 1976/week @ 2025-01-04 1244/week @ 2025-01-11 1156/week @ 2025-01-18 1501/week @ 2025-01-25 1769/week @ 2025-02-01 1996/week @ 2025-02-08 1992/week @ 2025-02-15 1902/week @ 2025-02-22 2512/week @ 2025-03-01 1833/week @ 2025-03-08 2298/week @ 2025-03-15 1137/week @ 2025-03-22 452/week @ 2025-03-29 333/week @ 2025-04-05 377/week @ 2025-04-12

2,816 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