You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ya...@apache.org on 2024/07/08 11:02:47 UTC
(dubbo-rust) branch main updated: Release version 0.4.0 (#201)
This is an automated email from the ASF dual-hosted git repository.
yangyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 5c87b71 Release version 0.4.0 (#201)
5c87b71 is described below
commit 5c87b71be91e64f8a838b65f958bb507e4f60cda
Author: Yang Yang <96...@qq.com>
AuthorDate: Mon Jul 8 19:02:41 2024 +0800
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 00e8452..2d64a2a 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 351f9c9..a75b038 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 2493fbc..a503b94 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 aecc1f8..b44d47b 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 4236f9f..7d63ca7 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 d3f5bf1..484ea04 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"