File tree Expand file tree Collapse file tree 14 files changed +107
-25
lines changed Expand file tree Collapse file tree 14 files changed +107
-25
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ header: # `header` section is configurations for source codes license header.
5656 paths-ignore : # `paths-ignore` are the path list that will be ignored by license-eye.
5757 - ' **/*.md'
5858 - ' **/Cargo.toml'
59+ - ' **/release.toml'
5960 - ' .rustfmt.toml'
6061 - ' LICENSE'
6162 - ' NOTICE'
Original file line number Diff line number Diff line change 11[package ]
22name = " common"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
5+ license = " Apache-2.0"
6+ description = " dubbo-rust-common"
7+ repository = " https://github.com/apache/dubbo-rust.git"
58
69# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710
Original file line number Diff line number Diff line change 11[package ]
22name = " dubbo-config"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
55license = " Apache-2.0"
66description = " dubbo-config"
Original file line number Diff line number Diff line change 1+ # 如何发布dubbo-rust的新版本
2+
3+ ## 前置条件
4+
5+ 安装[ cargo-release] ( https://crates.io/crates/cargo-release ) :
6+ ``` shell
7+ $ cargo install cargo-release
8+ ```
9+
10+ 登录 crates.io
11+
12+ ``` shell
13+ $ cargo login
14+ ```
15+
16+ ## 如何发布一个新版本
17+
18+ 1 . 更新版本号:
19+ ``` shell
20+ $ cargo release version minor
21+ $ cargo release version minor --execute
22+ ```
23+
24+ 2. 提交
25+ ` ` ` shell
26+ $ cargo release commit
27+ $ cargo release commit --execute
28+ ` ` `
29+
30+ 3. 打tag:
31+ ` ` ` shell
32+ $ cargo release tag
33+ $ cargo release tag --execute
34+ ` ` `
35+
36+ 4. push tag:
37+ ` ` ` shell
38+ $ cargo release push
39+ $ cargo release push --execute
40+ ` ` `
41+
42+ 5. 在邮件列表发起投票
43+
44+ 例子:< https://lists.apache.org/thread/cb949l81yfgg0wddthp1ym2wtd2y5s7j>
45+
46+ 6. 发布到 crates.io
47+
48+ ` ` ` shell
49+ $ cargo release publish
50+ $ cargo release publish --execute
51+ ` ` `
Original file line number Diff line number Diff line change 11[package ]
22name = " dubbo-build"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
55license = " Apache-2.0"
66description = " dubbo-build"
Original file line number Diff line number Diff line change 11[package ]
22name = " dubbo"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
55license = " Apache-2.0"
66description = " dubbo"
@@ -37,7 +37,7 @@ aws-smithy-http = "0.54.1"
3737itertools = " 0.10.1"
3838urlencoding = " 2.1.2"
3939
40- dubbo-config = {path = " ../config" , version = " 0.2 .0" }
40+ dubbo-config = {path = " ../config" , version = " 0.3 .0" }
4141
4242# 对象存储
43- state = { version = " 0.5" , features = [" tls" ] }
43+ state = { version = " 0.5" , features = [" tls" ] }
Original file line number Diff line number Diff line change 11[package ]
22name = " example-echo"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
5+ license = " Apache-2.0"
6+ description = " dubbo-rust-examples-echo"
7+ repository = " https://github.com/apache/dubbo-rust.git"
58
69# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710
11+ [package .metadata .release ]
12+ release = false
13+
814[[bin ]]
915name = " echo-server"
1016path = " src/echo/server.rs"
@@ -25,9 +31,9 @@ tokio-stream = "0.1"
2531
2632hyper = { version = " 0.14.19" , features = [" full" ]}
2733
28- dubbo = {path = " ../../dubbo" , version = " 0.2 .0" }
29- dubbo-config = {path = " ../../config" , version = " 0.2 .0" }
30- dubbo-registry-zookeeper = {path = " ../../registry-zookeeper" , version = " 0.2 .0" }
34+ dubbo = {path = " ../../dubbo" , version = " 0.3 .0" }
35+ dubbo-config = {path = " ../../config" , version = " 0.3 .0" }
36+ dubbo-registry-zookeeper = {path = " ../../registry-zookeeper" , version = " 0.3 .0" }
3137
3238[build-dependencies ]
33- dubbo-build = {path = " ../../dubbo-build" , version = " 0.2 .0" }
39+ dubbo-build = {path = " ../../dubbo-build" , version = " 0.3 .0" }
Original file line number Diff line number Diff line change 11[package ]
22name = " example-greeter"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
5+ license = " Apache-2.0"
6+ description = " dubbo-rust-examples-greeter"
7+ repository = " https://github.com/apache/dubbo-rust.git"
58
69# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710
11+ [package .metadata .release ]
12+ release = false
13+
814[[bin ]]
915name = " greeter-server"
1016path = " src/greeter/server.rs"
@@ -24,9 +30,9 @@ async-trait = "0.1.56"
2430tokio-stream = " 0.1"
2531tracing = " 0.1"
2632tracing-subscriber = " 0.2.0"
27- dubbo = {path = " ../../dubbo" , version = " 0.2 .0" }
28- dubbo-config = {path = " ../../config" , version = " 0.2 .0" }
29- dubbo-registry-zookeeper = {path = " ../../registry-zookeeper" , version = " 0.2 .0" }
33+ dubbo = {path = " ../../dubbo" , version = " 0.3 .0" }
34+ dubbo-config = {path = " ../../config" , version = " 0.3 .0" }
35+ dubbo-registry-zookeeper = {path = " ../../registry-zookeeper" , version = " 0.3 .0" }
3036
3137[build-dependencies ]
32- dubbo-build = {path = " ../../dubbo-build" , version = " 0.2 .0" }
38+ dubbo-build = {path = " ../../dubbo-build" , version = " 0.3 .0" }
Original file line number Diff line number Diff line change 11[package ]
22name = " metadata"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
5+ license = " Apache-2.0"
6+ description = " dubbo-rust-metadata"
7+ repository = " https://github.com/apache/dubbo-rust.git"
58
69# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710
Original file line number Diff line number Diff line change 11[package ]
22name = " dubbo-registry-nacos"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
55license = " Apache-2.0"
6+ description = " dubbo-rust-registry-nacos"
7+ repository = " https://github.com/apache/dubbo-rust.git"
68
79# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
810
911[dependencies ]
1012nacos-sdk = { version = " 0.2" , features = [" naming" , " auth-by-http" ] }
11- dubbo = {path = " ../dubbo/" , version = " 0.2 .0" }
13+ dubbo = {path = " ../dubbo/" , version = " 0.3 .0" }
1214serde_json = " 1.0"
1315serde = {version = " 1.0.145" ,features = [" derive" ]}
1416tracing = " 0.1"
1517anyhow = " 1.0.66"
1618
1719[dev-dependencies ]
18- tracing-subscriber = " 0.3.16"
20+ tracing-subscriber = " 0.3.16"
You can’t perform that action at this time.
0 commit comments