Skip to content

Commit e2c92bb

Browse files
committed
Update repository and crate details
1 parent 016aec7 commit e2c92bb

File tree

7 files changed

+65
-19
lines changed

7 files changed

+65
-19
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.24.0-surreal.1 (2026-03-02)
4+
5+
This is the SurrealDB fork of rust-rocksdb, based on upstream version 0.24.0.
6+
7+
### Repository
8+
9+
- Update repository URLs to surrealdb/rust-rocksdb
10+
- Rename crate to `surrealdb-rocksdb` (lib name remains `rocksdb`)
11+
- Rename sys crate to `surrealdb-librocksdb-sys`
12+
313
## 0.24.0 (2025-08-10)
414

515
### Features

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Thank you for taking an interest in the project, and contributing to it - it's a
1010

1111
## Bug Reports
1212
[bug-reports]: #bug-reports
13-
- **Ensure the bug has not already been reported** - this can be done with a quick search of the [existing open issues](https://github.com/rust-rocksdb/rust-rocksdb/issues?q=is%3Aissue+is%3Aopen+).
13+
- **Ensure the bug has not already been reported** - this can be done with a quick search of the [existing open issues](https://github.com/surrealdb/rust-rocksdb/issues?q=is%3Aissue+is%3Aopen+).
1414
- **Ensure the bug applies to the Rust wrapper, and not the underlying library** - bugs in the RocksDB library should be [reported upstream](https://github.com/facebook/rocksdb/issues).
15-
- When [creating an issue](https://github.com/rust-rocksdb/rust-rocksdb/issues/new) please try to:
15+
- When [creating an issue](https://github.com/surrealdb/rust-rocksdb/issues/new) please try to:
1616
- **Use a clear and descriptive title** to identify the issue
1717
- **Provide enough context** to accurately summarize the issue. Not every issue will need detailed steps to recreate, example code, stack traces, etc. - use your own judgment on what information would be helpful to anyone working on the issue. It's easier for someone to skim over too much context, than stop and wait for a response when context is missing.
1818

@@ -30,7 +30,7 @@ Discussion around the design and development of the wrapper primarily occurs wit
3030

3131
## Pull Requests
3232
[pull-requests]: #pull-requests
33-
Pull requests are welcome, and when contributing code, the author agrees to do so under the project's [licensing](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/LICENSE) - Apache 2.0 as of the time of this writing. The maintainers greatly appreciate PRs that follow open-source contribution best practices:
33+
Pull requests are welcome, and when contributing code, the author agrees to do so under the project's [licensing](https://github.com/surrealdb/rust-rocksdb/blob/master/LICENSE) - Apache 2.0 as of the time of this writing. The maintainers greatly appreciate PRs that follow open-source contribution best practices:
3434
1. Fork this repository to your personal GitHub account.
3535
1. Create a branch that includes your changes, **keep changes isolated and granular**.
3636
1. Include any relevant documentation and/or tests. Write [documentation tests](https://doc.rust-lang.org/rustdoc/documentation-tests.html) when relevant.

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rocksdb"
2+
name = "surrealdb-rocksdb"
33
description = "Rust wrapper for Facebook's RocksDB embeddable database"
44
version = "0.24.0"
55
edition = "2021"
@@ -8,16 +8,19 @@ authors = [
88
"Tyler Neely <t@jujit.su>",
99
"David Greenberg <dsg123456789@gmail.com>",
1010
]
11-
repository = "https://github.com/rust-rocksdb/rust-rocksdb"
11+
repository = "https://github.com/surrealdb/rust-rocksdb"
1212
license = "Apache-2.0"
1313
categories = ["database"]
1414
keywords = ["database", "embedded", "LSM-tree", "persistence"]
15-
homepage = "https://github.com/rust-rocksdb/rust-rocksdb"
15+
homepage = "https://github.com/surrealdb/rust-rocksdb"
1616
exclude = [".gitignore", ".travis.yml", "deploy.sh", "test/**/*"]
1717

1818
[workspace]
1919
members = ["librocksdb-sys"]
2020

21+
[lib]
22+
name = "rocksdb"
23+
2124
[features]
2225
default = ["snappy", "lz4", "zstd", "zlib", "bzip2", "bindgen-runtime"]
2326
jemalloc = ["librocksdb-sys/jemalloc"]
@@ -39,7 +42,7 @@ raw-ptr = []
3942

4043
[dependencies]
4144
libc = "0.2"
42-
librocksdb-sys = { path = "librocksdb-sys", version = "0.18.0", default-features = false, features = [
45+
librocksdb-sys = { path = "librocksdb-sys", version = "0.18.0", package = "surrealdb-librocksdb-sys", default-features = false, features = [
4346
"static",
4447
] }
4548
serde = { version = "1", features = ["derive"], optional = true }

MAINTAINERSHIP.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> **Note**: This maintainership document is inherited from the upstream [rust-rocksdb](https://github.com/rust-rocksdb/rust-rocksdb) project and serves as a reference for this SurrealDB fork. Governance and processes may be adapted to align with SurrealDB's standards.
2+
13
Maintainers agree to operate under this set of guidelines:
24

35
#### Authority
@@ -10,7 +12,7 @@ Maintainers are trusted to close issues, merge pull requests, and publish crates
1012
* updating the changelog
1113
* requires no approval
1214
1. Normal
13-
* librocksdb-sys updates
15+
* surrealdb-librocksdb-sys updates
1416
* API tracking code in the rocksdb crate that does not change control flow
1517
* breaking changes due to removed functionality in rocksdb
1618
* require 1 approval from another maintainer. if no maintainer is able to be reached for 2 weeks, then progress may be made anyway

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# rust-rocksdb
22

3-
[![RocksDB build](https://github.com/rust-rocksdb/rust-rocksdb/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/rust-rocksdb/rust-rocksdb/actions/workflows/rust.yml)
4-
[![crates.io](https://img.shields.io/crates/v/rocksdb.svg)](https://crates.io/crates/rocksdb)
5-
[![documentation](https://img.shields.io/docsrs/rocksdb/latest)](https://docs.rs/rocksdb)
6-
[![license](https://img.shields.io/crates/l/rocksdb.svg)](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/LICENSE)
7-
[![Gitter chat](https://badges.gitter.im/rust-rocksdb/gitter.svg)](https://gitter.im/rust-rocksdb/lobby)
3+
[![RocksDB build](https://github.com/surrealdb/rust-rocksdb/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/surrealdb/rust-rocksdb/actions/workflows/rust.yml)
4+
[![crates.io](https://img.shields.io/crates/v/surrealdb-rocksdb.svg)](https://crates.io/crates/surrealdb-rocksdb)
5+
[![documentation](https://img.shields.io/docsrs/surrealdb-rocksdb/latest)](https://docs.rs/surrealdb-rocksdb)
6+
[![license](https://img.shields.io/crates/l/surrealdb-rocksdb.svg)](https://github.com/surrealdb/rust-rocksdb/blob/master/LICENSE)
87
![rust 1.85.0 required](https://img.shields.io/badge/rust-1.85.0-blue.svg?label=MSRV)
98

10-
![GitHub commits (since latest release)](https://img.shields.io/github/commits-since/rust-rocksdb/rust-rocksdb/latest.svg)
9+
![GitHub commits (since latest release)](https://img.shields.io/github/commits-since/surrealdb/rust-rocksdb/latest.svg)
10+
11+
> [!NOTE]
12+
> - The `master` branch is an up-to-date sync from the upstream [rust-rocksdb](https://github.com/rust-rocksdb/rust-rocksdb) repository.
13+
> - The `main` branch is rebased from `master` with packaging changes to publish as `surrealdb-rocksdb` on crates.io (the library name remains `rocksdb`, so existing `use rocksdb::*` imports work unchanged).
14+
> - Release branches (e.g. `0.24.0-surreal`) are rebased from `main`, one per published version.
15+
> - For bugs unrelated to packaging, please report them [upstream](https://github.com/rust-rocksdb/rust-rocksdb/issues).
1116
1217
## Requirements
1318

@@ -29,6 +34,12 @@ compression submodules:
2934
git submodule update --init --recursive
3035
```
3136

37+
To update the RocksDB submodule to the latest commit on its tracked branch:
38+
39+
```shell
40+
git submodule update --init --recursive --remote librocksdb-sys/rocksdb
41+
```
42+
3243
## Compression Support
3344

3445
By default, support for [Snappy](https://github.com/google/snappy),
@@ -40,7 +51,7 @@ compression algorithms can be enabled. For example, to enable only LZ4
4051
compression support, make these changes to your Cargo.toml:
4152

4253
```toml
43-
[dependencies.rocksdb]
54+
[dependencies.surrealdb-rocksdb]
4455
default-features = false
4556
features = ["lz4"]
4657
```
@@ -71,7 +82,7 @@ links to libclang. This is suitable for musllinux platforms, such as Alpine linu
7182
To build on Alpine linux for example, make these changes to your Cargo.toml:
7283

7384
```toml
74-
[dependencies.rocksdb]
85+
[dependencies.surrealdb-rocksdb]
7586
default-features = false
7687
features = ["bindgen-static", "snappy", "lz4", "zstd", "zlib", "bzip2"]
7788
```

librocksdb-sys/Cargo.toml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "librocksdb-sys"
2+
name = "surrealdb-librocksdb-sys"
33
version = "0.18.0+10.7.5"
44
edition = "2021"
55
rust-version = "1.85.0"
@@ -10,10 +10,30 @@ authors = [
1010
license = "MIT/Apache-2.0/BSD-3-Clause"
1111
description = "Native bindings to librocksdb"
1212
readme = "README.md"
13-
repository = "https://github.com/rust-rocksdb/rust-rocksdb"
13+
repository = "https://github.com/surrealdb/rust-rocksdb"
1414
keywords = ["bindings", "ffi", "rocksdb"]
1515
categories = ["api-bindings", "database", "external-ffi-bindings"]
1616
links = "rocksdb"
17+
include = [
18+
"/src/**/*",
19+
"/tests/**/*",
20+
"/build.rs",
21+
"/rocksdb/**/*",
22+
"/snappy/**/*",
23+
"/build_version.cc",
24+
"/rocksdb_lib_sources.txt",
25+
"/snappy-stubs-public.h",
26+
"/README.md",
27+
"/Cargo.toml",
28+
"!**/.git/**",
29+
"!/rocksdb/docs/**",
30+
"!/rocksdb/examples/**",
31+
"!/snappy/docs/**",
32+
"!/snappy/testdata/**",
33+
]
34+
35+
[lib]
36+
name = "librocksdb_sys"
1737

1838
[features]
1939
default = ["static", "bindgen/runtime"]

librocksdb-sys/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ https://github.com/jsgf/rocksdb-sys
99

1010
### Version
1111

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

0 commit comments

Comments
 (0)