Skip to content

Commit a725998

Browse files
committed
[ISSUE #751]🤡init rocketmq-client crate🍻
1 parent 9a588d2 commit a725998

5 files changed

Lines changed: 40 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ members = [
33
"rocketmq",
44
"rocketmq-broker",
55
"rocketmq-cli",
6+
"rocketmq-client",
67
"rocketmq-common",
78
"rocketmq-example",
89
"rocketmq-filter",
910
"rocketmq-macros",
1011
"rocketmq-namesrv",
11-
"rocketmq-remoting", "rocketmq-runtime",
12+
"rocketmq-remoting",
13+
"rocketmq-runtime",
1214
"rocketmq-store"]
1315
resolver = "2"
1416

@@ -35,6 +37,7 @@ rocketmq-remoting = { version = "0.3.0", path = "./rocketmq-remoting" }
3537
rocketmq-cli = { version = "0.3.0", path = "./rocketmq-cli" }
3638
rocketmq-namesrv = { version = "0.3.0", path = "./rocketmq-namesrv" }
3739
rocketmq-broker = { version = "0.3.0", path = "./rocketmq-broker" }
40+
rocketmq-client = { version = "0.3.0", path = "./rocketmq-client" }
3841

3942
tokio = { version = "1.38", features = ["full"] }
4043
tokio-util = { version = "0.7.11", features = ["full"] }

rocketmq-client/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "rocketmq-client"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
homepage.workspace = true
7+
repository.workspace = true
8+
license.workspace = true
9+
keywords.workspace = true
10+
readme.workspace = true
11+
description.workspace = true
12+
13+
[dependencies]

rocketmq-client/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The Rust Implementation of Apache RocketMQ Client
2+
3+
## Overview
4+
5+
This project is the Rust implementation of Apache RocketMQ client. It is based on the RocketMQ Java client

rocketmq-client/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: usize, right: usize) -> usize {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}

0 commit comments

Comments
 (0)