Skip to content

Commit

Permalink
Merge pull request rust-rocksdb#5 from zhangsoledad/ckb
Browse files Browse the repository at this point in the history
chore: prepare publish
  • Loading branch information
zhangsoledad authored Mar 2, 2020
2 parents dd3cd3b + 8b449a9 commit a80fb31
Show file tree
Hide file tree
Showing 26 changed files with 91 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ os:
- osx

rust:
- stable
- 1.41.0

addons:
apt:
Expand Down
9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "rocksdb"
name = "ckb-rocksdb"
description = "Rust wrapper for Facebook's RocksDB embeddable database"
version = "0.12.2"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>", "Nervos Core Dev <dev@nervos.org>"]
license = "Apache-2.0"
keywords = ["database", "embedded", "LSM-tree", "persistence"]
homepage = "https://github.com/spacejam/rust-rocksdb"
homepage = "https://github.com/nervosnetwork/rust-rocksdb"
exclude = [
".gitignore",
".travis.yml",
"*.yml",
"deploy.sh",
"test/**/*",
"*.md"
]

[features]
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ jobs:
- template: windows-dependencies.yml
parameters:
rustup_toolchain: '1.41.0-x86_64-pc-windows-msvc'
- checkout: self
submodules: recursive
- script: cargo test
displayName: Run unit tests
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.41.0
2 changes: 1 addition & 1 deletion src/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl BackupEngine {
/// # Example
///
/// ```ignore
/// use rocksdb::backup::{BackupEngine, BackupEngineOptions};
/// use ckb_rocksdb::backup::{BackupEngine, BackupEngineOptions};
/// let backup_opts = BackupEngineOptions::default();
/// let mut backup_engine = BackupEngine::open(&backup_opts, &backup_path).unwrap();
/// let mut restore_option = rocksdb::backup::RestoreOptions::default();
Expand Down
24 changes: 12 additions & 12 deletions src/db_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ use std::slice;
/// widely recognised Rust idioms.
///
/// ```
/// use rocksdb::prelude::*;
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::prelude::*;
/// # use ckb_rocksdb::TemporaryDBPath;
///
/// let path = "_path_for_rocksdb_storage4";
/// # let path = TemporaryDBPath::new();
Expand Down Expand Up @@ -81,8 +81,8 @@ pub struct DBRawIterator<'a> {
/// ranges and direction.
///
/// ```
/// use rocksdb::{prelude::*, Direction, IteratorMode};
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::{prelude::*, Direction, IteratorMode};
/// # use ckb_rocksdb::TemporaryDBPath;

/// let path = "_path_for_rocksdb_storage2";
/// # let path = TemporaryDBPath::new();
Expand Down Expand Up @@ -145,8 +145,8 @@ impl<'a> DBRawIterator<'a> {
/// # Examples
///
/// ```rust
/// use rocksdb::prelude::*;
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::prelude::*;
/// # use ckb_rocksdb::TemporaryDBPath;
///
/// let path = "_path_for_rocksdb_storage5";
/// # let path = TemporaryDBPath::new();
Expand Down Expand Up @@ -185,8 +185,8 @@ impl<'a> DBRawIterator<'a> {
/// # Examples
///
/// ```rust
/// use rocksdb::prelude::*;
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::prelude::*;
/// # use ckb_rocksdb::TemporaryDBPath;
///
/// let path = "_path_for_rocksdb_storage6";
/// # let path = TemporaryDBPath::new();
Expand Down Expand Up @@ -228,8 +228,8 @@ impl<'a> DBRawIterator<'a> {
/// # Examples
///
/// ```rust
/// use rocksdb::prelude::*;
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::prelude::*;
/// # use ckb_rocksdb::TemporaryDBPath;
///
/// let path = "_path_for_rocksdb_storage7";
/// # let path = TemporaryDBPath::new();
Expand Down Expand Up @@ -270,8 +270,8 @@ impl<'a> DBRawIterator<'a> {
/// # Examples
///
/// ```rust
/// use rocksdb::prelude::*;
/// # use rocksdb::TemporaryDBPath;
/// use ckb_rocksdb::prelude::*;
/// # use ckb_rocksdb::TemporaryDBPath;
///
/// let path = "_path_for_rocksdb_storage8";
/// # let path = TemporaryDBPath::new();
Expand Down
Loading

0 comments on commit a80fb31

Please sign in to comment.