From 9a588d2ca9f26fd8dae9306598f8d32f3c9398f6 Mon Sep 17 00:00:00 2001 From: mxsm Date: Wed, 10 Jul 2024 00:25:00 +0800 Subject: [PATCH] =?UTF-8?q?[ISSUE=20#752]=F0=9F=8D=BBinit=20rocketmq-examp?= =?UTF-8?q?le=20crate=F0=9F=A4=A1=20(#753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 4 ++++ Cargo.toml | 3 ++- rocketmq-example/Cargo.toml | 13 +++++++++++++ rocketmq-example/README.md | 5 +++++ rocketmq-example/src/main.rs | 3 +++ 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 rocketmq-example/Cargo.toml create mode 100644 rocketmq-example/README.md create mode 100644 rocketmq-example/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index dbe80611..6ba541bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1557,6 +1557,10 @@ dependencies = [ "zstd", ] +[[package]] +name = "rocketmq-example" +version = "0.3.0" + [[package]] name = "rocketmq-filter" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index 232cb7fc..f4e7f638 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ members = [ "rocketmq-broker", "rocketmq-cli", "rocketmq-common", + "rocketmq-example", "rocketmq-filter", "rocketmq-macros", "rocketmq-namesrv", @@ -65,4 +66,4 @@ trait-variant = "0.1.2" once_cell = "1.19.0" mockall = "0.12.1" -cfg-if = "1.0.0" \ No newline at end of file +cfg-if = "1.0.0" diff --git a/rocketmq-example/Cargo.toml b/rocketmq-example/Cargo.toml new file mode 100644 index 00000000..0f0b0e61 --- /dev/null +++ b/rocketmq-example/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "rocketmq-example" +version.workspace = true +authors.workspace = true +edition.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true +keywords.workspace = true +readme.workspace = true +description.workspace = true + +[dependencies] diff --git a/rocketmq-example/README.md b/rocketmq-example/README.md new file mode 100644 index 00000000..833c4188 --- /dev/null +++ b/rocketmq-example/README.md @@ -0,0 +1,5 @@ +# Apache RocketMQ-Rust Examples + +## Overview + +Apache RocketMQ-Rust Examples is a collection of examples that demonstrate how to use Apache RocketMQ-Rust. \ No newline at end of file diff --git a/rocketmq-example/src/main.rs b/rocketmq-example/src/main.rs new file mode 100644 index 00000000..e7a11a96 --- /dev/null +++ b/rocketmq-example/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}