Skip to content

Commit f9b68ef

Browse files
authored
add how-to-release.md (#116)
* update version to 0.3.0
1 parent b98d724 commit f9b68ef

File tree

14 files changed

+107
-25
lines changed

14 files changed

+107
-25
lines changed

.licenserc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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'

common/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "common"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "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

config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dubbo-config"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "dubbo-config"

docs/how-to-release.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
```

dubbo-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dubbo-build"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "dubbo-build"

dubbo/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dubbo"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "dubbo"
@@ -37,7 +37,7 @@ aws-smithy-http = "0.54.1"
3737
itertools = "0.10.1"
3838
urlencoding = "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"] }

examples/echo/Cargo.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[package]
22
name = "example-echo"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "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]]
915
name = "echo-server"
1016
path = "src/echo/server.rs"
@@ -25,9 +31,9 @@ tokio-stream = "0.1"
2531

2632
hyper = { 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" }

examples/greeter/Cargo.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[package]
22
name = "example-greeter"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "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]]
915
name = "greeter-server"
1016
path = "src/greeter/server.rs"
@@ -24,9 +30,9 @@ async-trait = "0.1.56"
2430
tokio-stream = "0.1"
2531
tracing = "0.1"
2632
tracing-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" }

metadata/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "metadata"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "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

registry-nacos/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
[package]
22
name = "dubbo-registry-nacos"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "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]
1012
nacos-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" }
1214
serde_json = "1.0"
1315
serde = {version = "1.0.145",features = ["derive"]}
1416
tracing = "0.1"
1517
anyhow = "1.0.66"
1618

1719
[dev-dependencies]
18-
tracing-subscriber = "0.3.16"
20+
tracing-subscriber = "0.3.16"

0 commit comments

Comments
 (0)