Skip to content

Commit

Permalink
rename haizhi to gdiist
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyihua-cn committed Oct 14, 2024
1 parent a474ce1 commit 2f3713b
Show file tree
Hide file tree
Showing 30 changed files with 41 additions and 41 deletions.
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "haizhi-rocksdb"
name = "gdiist-rocksdb"
description = "Rust wrapper for Facebook's RocksDB embeddable database"
version = "0.2.8"
edition = "2018"
rust-version = "1.60"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]
repository = "https://github.com/haizhi-tech/haizhi-rust-rocksdb/"
repository = "https://github.com/gdiist-tech/gdiist-rust-rocksdb/"
license = "Apache-2.0"
categories = [ "database" ]
keywords = ["database", "embedded", "LSM-tree", "persistence"]
homepage = "https://github.com/haizhi-tech/haizhi-rust-rocksdb/"
homepage = "https://github.com/gdiist-tech/gdiist-rust-rocksdb/"
exclude = [
".gitignore",
".travis.yml",
Expand All @@ -22,21 +22,21 @@ members = ["librocksdb-sys"]

[features]
default = ["snappy", "lz4", "zstd", "zlib", "bzip2", "serde1"]
jemalloc = ["haizhi-librocksdb-sys/jemalloc"]
io-uring = ["haizhi-librocksdb-sys/io-uring"]
jemalloc = ["gdiist-librocksdb-sys/jemalloc"]
io-uring = ["gdiist-librocksdb-sys/io-uring"]
valgrind = []
snappy = ["haizhi-librocksdb-sys/snappy"]
lz4 = ["haizhi-librocksdb-sys/lz4"]
zstd = ["haizhi-librocksdb-sys/zstd"]
zlib = ["haizhi-librocksdb-sys/zlib"]
bzip2 = ["haizhi-librocksdb-sys/bzip2"]
rtti = ["haizhi-librocksdb-sys/rtti"]
snappy = ["gdiist-librocksdb-sys/snappy"]
lz4 = ["gdiist-librocksdb-sys/lz4"]
zstd = ["gdiist-librocksdb-sys/zstd"]
zlib = ["gdiist-librocksdb-sys/zlib"]
bzip2 = ["gdiist-librocksdb-sys/bzip2"]
rtti = ["gdiist-librocksdb-sys/rtti"]
multi-threaded-cf = []
serde1 = ["serde"]

[dependencies]
libc = "0.2"
haizhi-librocksdb-sys = { path = "librocksdb-sys", version = "0.2.7" }
gdiist-librocksdb-sys = { path = "librocksdb-sys", version = "0.2.7" }
serde = { version = "1", features = [ "derive" ], optional = true }
serde_json = "1.0.0"

Expand Down
2 changes: 1 addition & 1 deletion librocksdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "haizhi-librocksdb-sys"
name = "gdiist-librocksdb-sys"
version = "0.2.7+8.1.1"
edition = "2018"
rust-version = "1.60"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub use crate::{
write_batch::{WriteBatch, WriteBatchIterator, WriteBatchWithTransaction},
};

use haizhi_librocksdb_sys as ffi;
use gdiist_librocksdb_sys as ffi;

use std::error;
use std::fmt;
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/checkpoint_outlive_db.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{DB, checkpoint::Checkpoint};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/iterator_outlive_db.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{IteratorMode, DB};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/open_with_multiple_refs_as_single_threaded.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{SingleThreaded, DBWithThreadMode, Options};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/snapshot_outlive_db.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::DB;

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/snapshot_outlive_transaction.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{TransactionDB, SingleThreaded};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/snapshot_outlive_transaction_db.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{TransactionDB, SingleThreaded};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/fail/transaction_outlive_transaction_db.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{TransactionDB, SingleThreaded};

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_approximate.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::time::Duration;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::Ranges;
use rocksdb::{ColumnFamilyDescriptor, Options, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod util;

use pretty_assertions::assert_eq;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::{
backup::{BackupEngine, BackupEngineOptions, RestoreOptions},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod util;

use pretty_assertions::assert_eq;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::{
checkpoint::{Checkpoint, ExportImportFilesMetaData},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_column_family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod util;

use pretty_assertions::assert_eq;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::checkpoint::{Checkpoint, ExportImportFilesMetaData};
use rocksdb::{ColumnFamilyDescriptor, MergeOperands, Options, DB, DEFAULT_COLUMN_FAMILY_NAME};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_comparator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::{Options, DB};
use std::cmp::Ordering;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_compationfilter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

mod util;
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use pretty_assertions::assert_eq;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use std::convert::TryInto;
use std::{mem, sync::Arc, thread, time::Duration};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use pretty_assertions::assert_eq;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_merge_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{merge_operator::MergeFn, DBCompactionStyle, MergeOperands, Options, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_multithreaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use std::{sync::Arc, thread};

use rocksdb::DB;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_optimistic_transaction_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//

mod util;
use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;

use rocksdb::{
CuckooTableOptions, DBAccess, Direction, Error, ErrorKind, IteratorMode,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pinnable_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{Options, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{properties, Options, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_raw_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{DBAccess, DBRawIteratorWithThreadMode, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rocksdb_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use std::{fs, io::Read as _};

use rocksdb::{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_slice_transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{Options, SliceTransform, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sst_file_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{Error, Options, SstFileWriter, DB};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_transaction_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

mod util;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;

use rocksdb::{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_write_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use std::collections::HashMap;

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use pretty_assertions::assert_eq;
use rocksdb::{WriteBatch, WriteBatchIterator};

Expand Down
2 changes: 1 addition & 1 deletion tests/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]

use haizhi_rocksdb as rocksdb;
use gdiist_rocksdb as rocksdb;
use rocksdb::{Error, Options, DB};
use std::path::{Path, PathBuf};

Expand Down

0 comments on commit 2f3713b

Please sign in to comment.