From 7319f253948204208be1eb10a948ef2cb7d7d517 Mon Sep 17 00:00:00 2001 From: Oleksandr Anyshchenko Date: Fri, 10 Feb 2023 12:37:18 +0100 Subject: [PATCH] Release 0.20.1 (#742) --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- tests/test_backup.rs | 6 ++++-- 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 ", "David Greenberg "] 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());