Repository: Migorithm/duva
Pull request #186 (2025-01-28 20:21:54)

chore: rename project


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index 7146a975..370f61b1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -68,6 +68,16 @@ version = "1.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
 
+[[package]]
+name = "duva"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "bytes",
+ "thiserror",
+ "tokio",
+]
+
 [[package]]
 name = "gimli"
 version = "0.29.0"
@@ -188,16 +198,6 @@ dependencies = [
  "proc-macro2",
 ]
 
-[[package]]
-name = "redis-starter-rust"
-version = "0.1.0"
-dependencies = [
- "anyhow",
- "bytes",
- "thiserror",
- "tokio",
-]
-
 [[package]]
 name = "redox_syscall"
 version = "0.5.2"
diff --git a/Cargo.toml b/Cargo.toml
index ab1b07d7..a76ff52d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 # DON'T EDIT THIS!
 [package]
-name = "redis-starter-rust"
+name = "duva"
 version = "0.1.0"
 authors = ["Migorithm <saka90030@gmail.com>"]
 edition = "2021"
diff --git a/src/main.rs b/src/main.rs
index 6a70e81d..90094a3d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-use redis_starter_rust::{
+use duva::{
     adapters::cancellation_token::CancellationTokenFactory,
     services::config::{actor::ConfigActor, manager::ConfigManager},
     StartUpFacade,
@@ -16,11 +16,11 @@ async fn main() -> anyhow::Result<()> {
 
 #[tokio::test]
 async fn test_cancellation_token() {
-    use redis_starter_rust::client_utils::ClientStreamHandler;
-    use redis_starter_rust::services::interface::TCancellationNotifier;
-    use redis_starter_rust::services::interface::TCancellationTokenFactory;
-    use redis_starter_rust::services::interface::TCancellationWatcher;
-    use redis_starter_rust::TNotifyStartUp;
+    use duva::client_utils::ClientStreamHandler;
+    use duva::services::interface::TCancellationNotifier;
+    use duva::services::interface::TCancellationTokenFactory;
+    use duva::services::interface::TCancellationWatcher;
+    use duva::TNotifyStartUp;
     use std::sync::Arc;
 
     use tokio::net::TcpStream;


Test patch:
diff --git a/tests/common.rs b/tests/common.rs
index dbdb323f..94835f88 100644
--- a/tests/common.rs
+++ b/tests/common.rs
@@ -1,6 +1,6 @@
 use bytes::Bytes;
-use redis_starter_rust::make_smart_pointer;
-use redis_starter_rust::services::query_io::QueryIO;
+use duva::make_smart_pointer;
+use duva::services::query_io::QueryIO;
 use std::io::{BufRead, BufReader, Read};
 use std::process::{Child, Command, Stdio};
 
diff --git a/tests/test_clustering.rs b/tests/test_clustering.rs
index 4c7a4e24..0c621d51 100644
--- a/tests/test_clustering.rs
+++ b/tests/test_clustering.rs
@@ -1,6 +1,6 @@
 mod common;
 use common::{array, spawn_server_as_slave, spawn_server_process, wait_for_message};
-use redis_starter_rust::client_utils::ClientStreamHandler;
+use duva::client_utils::ClientStreamHandler;
 
 #[tokio::test]
 async fn test_make_peer_discovery_increase_known_node_count() {
diff --git a/tests/test_config_get_dir.rs b/tests/test_config_get_dir.rs
index ec3b2e50..2a255112 100644
--- a/tests/test_config_get_dir.rs
+++ b/tests/test_config_get_dir.rs
@@ -3,7 +3,7 @@
 mod common;
 use crate::common::array;
 use common::spawn_server_process;
-use redis_starter_rust::client_utils::ClientStreamHandler;
+use duva::client_utils::ClientStreamHandler;
 
 #[tokio::test]
 async fn test_config_get_dir() {
diff --git a/tests/test_handshake.rs b/tests/test_handshake.rs
index 40ddf9d4..f47dd25b 100644
--- a/tests/test_handshake.rs
+++ b/tests/test_handshake.rs
@@ -9,7 +9,7 @@
 ///
 ///
 use common::{spawn_server_as_slave, spawn_server_process, wait_for_message};
-use redis_starter_rust::client_utils::ClientStreamHandler;
+use duva::client_utils::ClientStreamHandler;
 
 mod common;
 
diff --git a/tests/test_heartbeat.rs b/tests/test_heartbeat.rs
index 9ac7aefb..7361ecfb 100644
--- a/tests/test_heartbeat.rs
+++ b/tests/test_heartbeat.rs
@@ -4,7 +4,7 @@
 
 mod common;
 use common::{array, spawn_server_as_slave, spawn_server_process, wait_for_message};
-use redis_starter_rust::client_utils::ClientStreamHandler;
+use duva::client_utils::ClientStreamHandler;
 
 #[tokio::test]
 async fn test_heartbeat() {
diff --git a/tests/test_keys.rs b/tests/test_keys.rs
index 0c9c8222..c1e928a8 100644
--- a/tests/test_keys.rs
+++ b/tests/test_keys.rs
@@ -1,6 +1,6 @@
 mod common;
 use common::{array, spawn_server_process};
-use redis_starter_rust::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
+use duva::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
 
 #[tokio::test]
 async fn test_keys() {
diff --git a/tests/test_replication_info.rs b/tests/test_replication_info.rs
index 64349cdc..91728cce 100644
--- a/tests/test_replication_info.rs
+++ b/tests/test_replication_info.rs
@@ -7,7 +7,7 @@ mod common;
 
 use common::{array, spawn_server_process};
 
-use redis_starter_rust::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
+use duva::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
 
 #[tokio::test]
 async fn test_replication_info() {
diff --git a/tests/test_save_read_dump.rs b/tests/test_save_read_dump.rs
index 8a3f5dc0..b115e388 100644
--- a/tests/test_save_read_dump.rs
+++ b/tests/test_save_read_dump.rs
@@ -8,8 +8,8 @@ use crate::common::array;
 use common::get_available_port;
 use common::wait_for_message;
 use common::TestProcessChild;
-use redis_starter_rust::client_utils::ClientStreamHandler;
-use redis_starter_rust::services::query_io::QueryIO;
+use duva::client_utils::ClientStreamHandler;
+use duva::services::query_io::QueryIO;
 use std::process::Command;
 use std::process::Stdio;
 use std::time::SystemTime;
diff --git a/tests/test_set_get.rs b/tests/test_set_get.rs
index 8d6eba6a..81b94201 100644
--- a/tests/test_set_get.rs
+++ b/tests/test_set_get.rs
@@ -5,7 +5,7 @@
 mod common;
 use common::{array, spawn_server_process};
 
-use redis_starter_rust::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
+use duva::{client_utils::ClientStreamHandler, services::query_io::QueryIO};
 
 #[tokio::test]
 async fn test_set_get() {