File tree 7 files changed +42
-9
lines changed
7 files changed +42
-9
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,34 @@ The title format of the pull request `MUST` follow the following rules:
29
29
### 3.1 log
30
30
31
31
> 1 when logging the function's input parameter, you should add '@' before input parameter name.
32
+
33
+ ## 4. Dev
34
+
35
+ ### 4.1 Formating
36
+
37
+ Currently, dubbo-rust recommand using rustfmt nightly version for formating:
38
+ 1 . ` rustup toolchain install nightly --component rustfmt `
39
+ 2 . configure ` settings.json ` :
40
+ ``` json
41
+ {
42
+ "rust-analyzer.rustfmt.overrideCommand" : [" cargo" , " +nightly" , " fmt" ]
43
+ }
44
+ ```
45
+
46
+ ### 4.2 Debugging
47
+
48
+ Example launch configuration:
49
+ ``` json
50
+ {
51
+ "type" : " lldb" ,
52
+ "request" : " launch" ,
53
+ "name" : " greeter-server" ,
54
+ "program" : " ${workspaceFolder}/target/debug/greeter-server" ,
55
+ "args" : [],
56
+ "cwd" : " ${workspaceFolder}/examples/greeter/" ,
57
+ "terminal" : " console" ,
58
+ "env" : {
59
+ "ZOOKEEPER_SERVERS" : " mse-21b397d4-p.zk.mse.aliyuncs.com:2181" ,
60
+ }
61
+ }
62
+ ```
Original file line number Diff line number Diff line change 5
5
6
6
Apache Dubbo-rust, an RPC framework that implements Dubbo written in Rust.Please visit the [ official website] ( https://dubbo.apache.org/ ) for more information.
7
7
8
- [ ![ Build Status] ( https://travis-ci.org/apache/dubbo-rust.svg?branch=main )] ( https://travis-ci.org/apache/dubbo-rust ) ![ License] ( https://img.shields.io/github/license/alibaba/dubbo.svg )
8
+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/apache/dubbo-rust/.github/workflows/github-actions.yml?branch=main&style=flat-square )] ( https://github.com/apache/dubbo-rust/actions/workflows/github-actions.yml?query=branch%3Amain )
9
+ ![ License] ( https://img.shields.io/github/license/apache/dubbo-rust?style=flat-square )
9
10
10
11
[ [ 中文] ( ./README_CN.md ) ]
11
12
@@ -73,7 +74,7 @@ more ...
73
74
74
75
## Contribute
75
76
76
- Welcome more developers to join us. About more details please check "[ How to contribute] ( https://github.com/apache/dubbo-rust/blob/main/contributing .md ) ".
77
+ Welcome more developers to join us. About more details please check "[ How to contribute] ( https://github.com/apache/dubbo-rust/blob/main/CONTRIBUTING .md ) ".
77
78
78
79
## License
79
80
Original file line number Diff line number Diff line change 5
5
6
6
Apache Dubbo-rust, Dubbo RPC框架的Rust实现。请访问 [ Dubbo官网] ( https://dubbo.apache.org/ ) 查看更多信息.
7
7
8
- [ ![ Build Status] ( https://travis-ci.org/apache/dubbo-rust.svg?branch=main )] ( https://travis-ci.org/apache/dubbo-rust ) ![ License] ( https://img.shields.io/github/license/alibaba/dubbo.svg )
8
+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/apache/dubbo-rust/.github/workflows/github-actions.yml?branch=main&style=flat-square )] ( https://github.com/apache/dubbo-rust/actions/workflows/github-actions.yml?query=branch%3Amain )
9
+ ![ License] ( https://img.shields.io/github/license/apache/dubbo-rust?style=flat-square )
9
10
10
11
## 概述
11
12
@@ -32,7 +33,7 @@ Dubbo-rust 目前还在开发阶段. 截至目前, 已经实现了基于HTTP2的
32
33
## 开始使用
33
34
34
35
- Dubbo-rust 快速开始: [ 中文] ( https://dubbo.apache.org/zh/docs3-v2/rust-sdk/quick-start/ ) , English
35
- - Dubbo-rust 教程: [ Examples] ( examples/READMED .md )
36
+ - Dubbo-rust 教程: [ Examples] ( examples/README .md )
36
37
37
38
## 项目结构
38
39
@@ -71,7 +72,7 @@ more ...
71
72
72
73
## 贡献
73
74
74
- 欢迎更多的开发者加入我们。关于更多的信息可以查看 [[ CONTRIBUTING] ( https://github.com/apache/dubbo-rust/blob/main/contributing .md )] 。
75
+ 欢迎更多的开发者加入我们。关于更多的信息可以查看 [[ CONTRIBUTING] ( https://github.com/apache/dubbo-rust/blob/main/CONTRIBUTING .md )] 。
75
76
76
77
## 许可证
77
78
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkdir .vscode
14
14
15
15
创建个json文件,名称为launch.json,该文件 ** .vscode** 目录下 将下文的内容复制到launch.json中
16
16
17
- ``` json
17
+ ``` jsonc
18
18
{
19
19
// Use IntelliSense to learn about possible attributes.
20
20
// Hover to view descriptions of existing attributes.
@@ -47,12 +47,12 @@ mkdir .vscode
47
47
48
48
#### 打开 examples/greeter/src/greeter 目录,选择server.rs
49
49
50
- ![ image.png] ( ../docs/images/eamples /dir-server.png )
50
+ ![ image.png] ( ../docs/images/examples /dir-server.png )
51
51
52
52
#### 选择左侧的运行按钮,启动 server 服务
53
53
54
- ![ image.png] ( ../docs/images/eamples /server.png )
54
+ ![ image.png] ( ../docs/images/examples /server.png )
55
55
56
56
##### 启动 client 访问server 端
57
57
58
- ![ image.png] ( ../docs/images/eamples /client.png )
58
+ ![ image.png] ( ../docs/images/examples /client.png )
You can’t perform that action at this time.
0 commit comments