Release 0.18.0 (#601)

master
Oleksandr Anyshchenko 3 years ago committed by GitHub
parent 308d81a6ec
commit 19f2dfa37b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/rust.yml
  2. 31
      CHANGELOG.md
  3. 4
      Cargo.toml
  4. 2
      librocksdb-sys/Cargo.toml
  5. 10
      librocksdb-sys/README.md
  6. 25
      librocksdb-sys/build.rs
  7. 2
      librocksdb-sys/rocksdb_lib_sources.txt

@ -28,8 +28,6 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
submodules: true
- name: Install rust - name: Install rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -68,8 +66,6 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
submodules: true
- name: Install rust - name: Install rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

@ -1,7 +1,36 @@
# Changelog # Changelog
## [Unreleased] ## [Unreleased]
* Re-add support for UTF-8 file paths on Windows (rajivshah3)
## 0.18.0 (2022-02-03)
* Add open_cf_descriptor methods for Seoncdary and ReadOnly AccessType (steviez)
* Make Ribbon filters available (niklasf)
* Change versioning scheme of `librocksdb-sys` crate (aleksuss)
* Upgrade to RocksDB 6.28.2 (akrylysov)
* Fix theoretical UB while transmuting Arc (niklasf)
* Support configuring bottom-most compression level (mina86)
* Add BlockBasedOptions::set_whole_key_filtering (niklasf)
* Add constants for all supported properties (steviez)
* Make CacheWrapper and EnvWrapper Send and Sync (aleksuss)
* Replace mem::transmute with narrower conversions (niklasf)
* Optimize non-overlapping copy in raw_data (niklasf)
* Support multi_get_* methods (olegnn)
* Optimize multi_get_cf_opt() to use size hint (niklasf)
* Fix typo in set_background_purge_on_iterator_cleanup method (Congyuwang)
* Use external compression crates where possible (Dr-Emann)
* Update compression dependencies (akrylysov)
* Add method for opening DB with ro access and cf descriptors (nikurt)
* Support restoring from a specified backup (GoldenLeaves)
* Add merge operands iterator (0xdeafbeef)
* Derive serde::{Serialize, Deserialize} for configuration enums (thibault-martinez)
* Add feature flag for runtime type information and metadata (jgraettinger)
* Add set_info_log_level to control log verbosity (tkintscher)
* Replace jemalloc-sys for tikv-jemalloc-sys (Rexagon)
* Support UTF-8 file paths on Windows (rajivshah3)
* Support building RocksDB with jemalloc (akrylysov)
* Add rocksdb WAL flush api (duarten)
* Update rocksdb to v6.22.1 (#540)
## 0.17.0 (2021-07-22) ## 0.17.0 (2021-07-22)

@ -1,7 +1,7 @@
[package] [package]
name = "rocksdb" name = "rocksdb"
description = "Rust wrapper for Facebook's RocksDB embeddable database" description = "Rust wrapper for Facebook's RocksDB embeddable database"
version = "0.17.0" version = "0.18.0"
edition = "2018" edition = "2018"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"] authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]
repository = "https://github.com/rust-rocksdb/rust-rocksdb" repository = "https://github.com/rust-rocksdb/rust-rocksdb"
@ -31,7 +31,7 @@ serde1 = ["serde"]
[dependencies] [dependencies]
libc = "0.2" libc = "0.2"
librocksdb-sys = { path = "librocksdb-sys", version = "6.20.3" } librocksdb-sys = { path = "librocksdb-sys", version = "0.6.0" }
serde = { version = "1", features = [ "derive" ], optional = true } serde = { version = "1", features = [ "derive" ], optional = true }
[dev-dependencies] [dev-dependencies]

@ -1,6 +1,6 @@
[package] [package]
name = "librocksdb-sys" name = "librocksdb-sys"
version = "6.28.2" version = "0.6.0+6.28.2"
edition = "2018" edition = "2018"
authors = ["Karl Hobley <karlhobley10@gmail.com>", "Arkadiy Paronyan <arkadiy@ethcore.io>"] authors = ["Karl Hobley <karlhobley10@gmail.com>", "Arkadiy Paronyan <arkadiy@ethcore.io>"]
license = "MIT/Apache-2.0/BSD-3-Clause" license = "MIT/Apache-2.0/BSD-3-Clause"

@ -1,10 +1,14 @@
RocksDB bindings # RocksDB bindings
================
Low-level bindings to RocksDB's C API. Low-level bindings to [RocksDB's](https://github.com/facebook/rocksdb) C API.
Based on original work by Tyler Neely Based on original work by Tyler Neely
https://github.com/rust-rocksdb/rust-rocksdb https://github.com/rust-rocksdb/rust-rocksdb
and Jeremy Fitzhardinge and Jeremy Fitzhardinge
https://github.com/jsgf/rocksdb-sys https://github.com/jsgf/rocksdb-sys
### Version
The librocksdb-sys version number is in the format `X.Y.Z+RX.RY.RZ`, where
`X.Y.Z` is the version of this crate and follows SemVer conventions, while
`RX.RY.RZ` is the version of the bundled rocksdb.

@ -1,6 +1,4 @@
use std::env; use std::{env, fs, path::PathBuf, process::Command};
use std::fs;
use std::path::PathBuf;
fn link(name: &str, bundled: bool) { fn link(name: &str, bundled: bool) {
use std::env::var; use std::env::var;
@ -299,7 +297,28 @@ fn cxx_standard() -> String {
}) })
} }
fn update_submodules() {
let program = "git";
let dir = "../";
let args = ["submodule", "update", "--init"];
println!(
"Running command: \"{} {}\" in dir: {}",
program,
args.join(" "),
dir
);
let ret = Command::new(program).current_dir(dir).args(args).status();
match ret.map(|status| (status.success(), status.code())) {
Ok((true, _)) => (),
Ok((false, Some(c))) => panic!("Command failed with error code {}", c),
Ok((false, None)) => panic!("Command got killed"),
Err(e) => panic!("Command failed with error: {}", e),
}
}
fn main() { fn main() {
update_submodules();
bindgen_rocksdb(); bindgen_rocksdb();
if !try_to_find_and_link_lib("ROCKSDB") { if !try_to_find_and_link_lib("ROCKSDB") {

@ -34,7 +34,6 @@ db/db_filesnapshot.cc
db/db_impl/compacted_db_impl.cc db/db_impl/compacted_db_impl.cc
db/db_impl/db_impl.cc db/db_impl/db_impl.cc
db/db_impl/db_impl_compaction_flush.cc db/db_impl/db_impl_compaction_flush.cc
db/db_impl/db_impl_debug.cc
db/db_impl/db_impl_experimental.cc db/db_impl/db_impl_experimental.cc
db/db_impl/db_impl_files.cc db/db_impl/db_impl_files.cc
db/db_impl/db_impl_open.cc db/db_impl/db_impl_open.cc
@ -209,7 +208,6 @@ util/comparator.cc
util/compression_context_cache.cc util/compression_context_cache.cc
util/concurrent_task_limiter_impl.cc util/concurrent_task_limiter_impl.cc
util/crc32c.cc util/crc32c.cc
util/crc32c_arm64.cc
util/dynamic_bloom.cc util/dynamic_bloom.cc
util/hash.cc util/hash.cc
util/murmurhash.cc util/murmurhash.cc

Loading…
Cancel
Save