summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--Cargo.toml2
-rw-r--r--tests/test_backup.rs6
3 files changed, 9 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c4324a0..9a79207 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## [Unreleased]
+## 0.20.1 (2023-02-10)
+
+* Fix supporting MSRV 1.60.0 (aleksuss)
+
## 0.20.0 (2023-02-09)
* Support RocksDB 7.x `BackupEngineOptions` (exabytes18)
diff --git a/Cargo.toml b/Cargo.toml
index 5d6be0b..897968e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "rocksdb"
description = "Rust wrapper for Facebook's RocksDB embeddable database"
-version = "0.20.0"
+version = "0.20.1"
edition = "2018"
rust-version = "1.60"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]
diff --git a/tests/test_backup.rs b/tests/test_backup.rs
index a44c126..b1dff2e 100644
--- a/tests/test_backup.rs
+++ b/tests/test_backup.rs
@@ -33,8 +33,9 @@ fn restore_from_latest() {
let value = db.get(b"k1");
assert_eq!(value.unwrap().unwrap(), b"v1111");
{
+ let backup_path = DBPath::new("restore_from_latest_test_backup");
let env = Env::new().unwrap();
- let backup_opts = BackupEngineOptions::new("backup_path_1").unwrap();
+ let backup_opts = BackupEngineOptions::new(&backup_path).unwrap();
let mut backup_engine = BackupEngine::open(&backup_opts, &env).unwrap();
assert!(backup_engine.create_new_backup(&db).is_ok());
@@ -74,8 +75,9 @@ fn restore_from_backup() {
let value = db.get(b"k1");
assert_eq!(value.unwrap().unwrap(), b"v1111");
{
+ let backup_path = DBPath::new("restore_from_latest_test_backup");
let env = Env::new().unwrap();
- let backup_opts = BackupEngineOptions::new("backup_path_2").unwrap();
+ let backup_opts = BackupEngineOptions::new(&backup_path).unwrap();
let mut backup_engine = BackupEngine::open(&backup_opts, &env).unwrap();
assert!(backup_engine.create_new_backup(&db).is_ok());