rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.

Latest version: 11.12

Add to xmake.lua

add_requires("rocksdb 11.12")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2026-10-30T09:08:39.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • macosx: x86_64, arm64
  • mingw: x86_64
  • windows: x64, arm64

Options

gflags
Build with gflags. · Type: boolean · Default: false
jemalloc
Build with JeMalloc. · Type: boolean · Default: false
liburing
Build with liburing. · Type: boolean · Default: false
lz4
Build with lz4. · Type: boolean · Default: false
rtti
Enable RTTI builds. · Type: boolean · Default: false
snappy
Build with snappy. · Type: boolean · Default: false
zlib
Build with zlib. · Type: boolean · Default: false
zstd
Build with zstd. · Type: boolean · Default: false

Versions

  • v9.0.0
  • v9.1.1
  • v9.2.1
  • v9.3.1
  • v9.4.0
  • v9.5.2
  • v9.6.1
  • v9.7.2
  • v9.7.3
  • v9.7.4
  • v9.9.3
  • v9.10.0
  • v9.11.2
  • v10.0.1
  • v10.4.2
  • v10.5.1
  • v10.7.5
  • v10.9.1
  • v10.10.1
  • v11.0.4
  • v11.1.1
  • v11.1.2
  • v11.12

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "rocksdb 11.12"

show info

xrepo info "rocksdb"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("rocksdb 11.12")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("rocksdb")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "rocksdb 11.12" shell