Skip to content

Commit

Permalink
bump: upgrade to 0.3.1 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
CherishCai authored Jul 23, 2023
1 parent 4e9a329 commit fb8e87c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 变更日志 | Change log

### 0.3.1

- Fix:异步登陆未完成,进行其它调用出现未登陆异常 `user not found`

---

- Fix: Asynchronous login not completed, there is an exception to `user not found` in when making other calls.

### 0.3.0

- 重构:gRPC 连接层使用 tonic 替代 tikv/grpc-rs ,让编译构建更舒适
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[package]
name = "nacos-sdk"
version = "0.3.1-alpha"
version = "0.3.1"
edition = "2021"
authors = ["nacos-group", "CheirshCai <[email protected]>", "onewe <[email protected]>"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ nacos-sdk = { version = "0.3", features = ["default"] }

- serde-rs/serde 一个超高性能的通用序列化/反序列化框架,可以跟多种协议的库联合使用,实现统一编解码格式
- serde-rs/json 快到上天的 JSON 库,也是 Rust 事实上的标准 JSON
- tikv/grpc-rs 一个 Rust 版的 gRPC 客户端和服务器端
- hyperium/tonic 一个 Rust 版的 gRPC 客户端和服务器端
- tokio-rs/prost tokio 出品的 Protocol Buffers 工具,简单易用,文档详细
- tokio-rs/tokio 最火的异步网络库,除了复杂上手难度高一些外,没有其它大的问题。同时 tokio 团队提供了多个非常优秀的 Rust 库,整个生态欣欣向荣,用户认可度很高
- tokio-rs/tracing 强大的日志框架,同时还支持 OpenTelemetry 格式,无缝打通未来的监控
Expand All @@ -139,7 +139,7 @@ nacos-sdk = { version = "0.3", features = ["default"] }

请关注 `proto/nacos_grpc_service.proto` 并知晓构建出客户端侧的 stub,实现同步调用 `service Request.request()`,流式交互 `service BiRequestStream.requestBiStream()`

`tikv/grpc-rs` 创建与 Nacos-server 的 gRPC 双工长链接,`serde/json` 适配与 server 的交互序列化;
`hyperium/tonic` 创建与 Nacos-server 的 gRPC 双工长链接,`serde/json` 适配与 server 的交互序列化;

gRPC 交互的 Payload 和 Metadata 由 `Protocol Buffers` 序列化,具体的 Request/Response 实体 json 格式二进制数据维护于 Payload.body,类型名字符串维护于 Metadata.type 。

Expand Down

0 comments on commit fb8e87c

Please sign in to comment.