From 5c87b71be91e64f8a838b65f958bb507e4f60cda Mon Sep 17 00:00:00 2001 From: Yang Yang <962032265@qq.com> Date: Mon, 8 Jul 2024 19:02:41 +0800 Subject: [PATCH] Release version 0.4.0 (#201) * chore: update name in cargo.toml * refact: update examples * style: cargo fmt --- examples/echo/Cargo.toml | 2 +- examples/greeter/Cargo.toml | 4 ++-- examples/greeter/src/greeter/client.rs | 2 +- examples/greeter/src/greeter/server.rs | 2 +- registry/nacos/Cargo.toml | 2 +- registry/zookeeper/Cargo.toml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/echo/Cargo.toml b/examples/echo/Cargo.toml index 00e8452f..2d64a2a0 100644 --- a/examples/echo/Cargo.toml +++ b/examples/echo/Cargo.toml @@ -41,7 +41,7 @@ async-trait = "0.1.56" tokio-stream = "0.1" dubbo = {path = "../../dubbo"} -registry-zookeeper.workspace=true +dubbo-registry-zookeeper = {path="../../registry/zookeeper"} [build-dependencies] dubbo-build = {path = "../../dubbo-build", version = "0.3.0" } diff --git a/examples/greeter/Cargo.toml b/examples/greeter/Cargo.toml index 351f9c98..a75b0385 100644 --- a/examples/greeter/Cargo.toml +++ b/examples/greeter/Cargo.toml @@ -32,8 +32,8 @@ prost-serde-derive = "0.1.2" async-trait = "0.1.56" tokio-stream = "0.1" dubbo = { path = "../../dubbo"} -registry-zookeeper.workspace = true -registry-nacos.workspace = true +dubbo-registry-zookeeper = {path="../../registry/zookeeper"} +dubbo-registry-nacos = {path="../../registry/nacos"} [build-dependencies] dubbo-build = { path = "../../dubbo-build", version = "0.3.0" } diff --git a/examples/greeter/src/greeter/client.rs b/examples/greeter/src/greeter/client.rs index 2493fbcb..a503b945 100644 --- a/examples/greeter/src/greeter/client.rs +++ b/examples/greeter/src/greeter/client.rs @@ -23,9 +23,9 @@ pub mod protos { use dubbo::codegen::*; use dubbo::{extension, extension::registry_extension::RegistryExtension}; +use dubbo_registry_nacos::NacosRegistry; use futures_util::StreamExt; use protos::{greeter_client::GreeterClient, GreeterRequest}; -use registry_nacos::NacosRegistry; #[tokio::main] async fn main() { diff --git a/examples/greeter/src/greeter/server.rs b/examples/greeter/src/greeter/server.rs index aecc1f8e..b44d47bc 100644 --- a/examples/greeter/src/greeter/server.rs +++ b/examples/greeter/src/greeter/server.rs @@ -18,8 +18,8 @@ use std::{io::ErrorKind, pin::Pin}; use async_trait::async_trait; +use dubbo_registry_nacos::NacosRegistry; use futures_util::{Stream, StreamExt}; -use registry_nacos::NacosRegistry; use tokio::sync::mpsc; use tokio_stream::wrappers::ReceiverStream; diff --git a/registry/nacos/Cargo.toml b/registry/nacos/Cargo.toml index 4236f9f2..7d63ca7b 100644 --- a/registry/nacos/Cargo.toml +++ b/registry/nacos/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "registry-nacos" +name = "dubbo-registry-nacos" version = "0.3.0" edition = "2021" license = "Apache-2.0" diff --git a/registry/zookeeper/Cargo.toml b/registry/zookeeper/Cargo.toml index d3f5bf1f..484ea04a 100644 --- a/registry/zookeeper/Cargo.toml +++ b/registry/zookeeper/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "registry-zookeeper" +name = "dubbo-registry-zookeeper" version = "0.3.0" edition = "2021" license = "Apache-2.0"