You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/05/11 11:36:13 UTC

(opendal) 01/01: deps(services/rocksdb): upgrade rocksdb crate

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/upgrade-rocksdb-0-24
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 06228fa2b11f544e9dc04402d94d1c2f513f8419
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon May 11 19:35:58 2026 +0800

    deps(services/rocksdb): upgrade rocksdb crate
---
 .github/actions/setup/action.yaml |  8 ++++----
 core/Cargo.lock                   | 42 ++++++++++++---------------------------
 core/services/rocksdb/Cargo.toml  |  2 +-
 3 files changed, 18 insertions(+), 34 deletions(-)

diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml
index 764d2b0af..ea530a299 100644
--- a/.github/actions/setup/action.yaml
+++ b/.github/actions/setup/action.yaml
@@ -162,7 +162,7 @@ runs:
       if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
       with:
         path: /tmp/rocksdb
-        key: r2-rocksdb-8.1.1
+        key: r2-rocksdb-10.4.2
 
     - name: Build rocksdb if not cached
       if: steps.cache-rocksdb.outputs.cache-hit != 'true' && runner.os == 'Linux' && inputs.need-rocksdb == 'true'
@@ -171,9 +171,9 @@ runs:
         set -e
 
         cd /tmp
-        curl https://github.com/facebook/rocksdb/archive/refs/tags/v8.1.1.tar.gz -L -o rocksdb.tar.gz
+        curl https://github.com/facebook/rocksdb/archive/refs/tags/v10.4.2.tar.gz -L -o rocksdb.tar.gz
         tar -xzf rocksdb.tar.gz
-        cd rocksdb-8.1.1
+        cd rocksdb-10.4.2
 
         mkdir /tmp/rocksdb
         cmake -DCMAKE_INSTALL_PREFIX=/tmp/rocksdb -DPORTABLE=1
@@ -181,7 +181,7 @@ runs:
         make install
 
         cd ..
-        rm -rf /tmp/rocksdb-8.1.1
+        rm -rf /tmp/rocksdb-10.4.2
 
     - name: Cache foundationdb
       id: cache-foundationdb
diff --git a/core/Cargo.lock b/core/Cargo.lock
index df21f618c..a3c0ba06b 100644
--- a/core/Cargo.lock
+++ b/core/Cargo.lock
@@ -1138,16 +1138,15 @@ dependencies = [
 
 [[package]]
 name = "bindgen"
-version = "0.65.1"
+version = "0.70.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5"
+checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f"
 dependencies = [
- "bitflags 1.3.2",
+ "bitflags 2.11.1",
  "cexpr",
  "clang-sys",
- "lazy_static",
- "lazycell",
- "peeking_take_while",
+ "itertools 0.13.0",
+ "log",
  "prettyplease",
  "proc-macro2",
  "quote",
@@ -1159,20 +1158,18 @@ dependencies = [
 
 [[package]]
 name = "bindgen"
-version = "0.70.1"
+version = "0.72.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f"
+checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
 dependencies = [
  "bitflags 2.11.1",
  "cexpr",
  "clang-sys",
  "itertools 0.13.0",
- "log",
- "prettyplease",
  "proc-macro2",
  "quote",
  "regex",
- "rustc-hash 1.1.0",
+ "rustc-hash 2.1.2",
  "shlex",
  "syn 2.0.117",
 ]
@@ -5096,12 +5093,6 @@ dependencies = [
  "spin",
 ]
 
-[[package]]
-name = "lazycell"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
-
 [[package]]
 name = "leb128fmt"
 version = "0.1.0"
@@ -5173,14 +5164,13 @@ dependencies = [
 
 [[package]]
 name = "librocksdb-sys"
-version = "0.11.0+8.1.1"
+version = "0.17.3+10.4.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3386f101bcb4bd252d8e9d2fb41ec3b0862a15a62b478c355b2982efa469e3e"
+checksum = "cef2a00ee60fe526157c9023edab23943fae1ce2ab6f4abb2a807c1746835de9"
 dependencies = [
- "bindgen 0.65.1",
+ "bindgen 0.72.1",
  "bzip2-sys",
  "cc",
- "glob",
  "libc",
  "libz-sys",
 ]
@@ -7937,12 +7927,6 @@ version = "0.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27"
 
-[[package]]
-name = "peeking_take_while"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
-
 [[package]]
 name = "pem"
 version = "3.0.6"
@@ -9424,9 +9408,9 @@ checksum = "4e27ee8bb91ca0adcf0ecb116293afa12d393f9c2b9b9cd54d33e8078fe19839"
 
 [[package]]
 name = "rocksdb"
-version = "0.21.0"
+version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb6f170a4041d50a0ce04b0d2e14916d6ca863ea2e422689a5b694395d299ffe"
+checksum = "ddb7af00d2b17dbd07d82c0063e25411959748ff03e8d4f96134c2ff41fce34f"
 dependencies = [
  "libc",
  "librocksdb-sys",
diff --git a/core/services/rocksdb/Cargo.toml b/core/services/rocksdb/Cargo.toml
index 1d96a59f7..1a08d7f67 100644
--- a/core/services/rocksdb/Cargo.toml
+++ b/core/services/rocksdb/Cargo.toml
@@ -32,7 +32,7 @@ all-features = true
 
 [dependencies]
 opendal-core = { path = "../../core", version = "0.56.0", default-features = false }
-rocksdb = { version = "0.21.0", default-features = false }
+rocksdb = { version = "0.24.0", default-features = false }
 serde = { workspace = true, features = ["derive"] }
 
 [dev-dependencies]