Skip to content

Commit

Permalink
[ISSUE #131]init broker and store crate (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 31, 2024
1 parent 9fd8c55 commit 9a980eb
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[workspace]
members = [
"rocketmq",
"rocketmq-broker",
"rocketmq-common",
"rocketmq-macros",
"rocketmq-namesrv",
"rocketmq-remoting"]
"rocketmq-remoting",
"rocketmq-store"]
resolver = "2"

[workspace.package]
Expand Down
15 changes: 15 additions & 0 deletions rocketmq-broker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "rocketmq-broker"
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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
14 changes: 14 additions & 0 deletions rocketmq-broker/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
15 changes: 15 additions & 0 deletions rocketmq-store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "rocketmq-store"
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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
14 changes: 14 additions & 0 deletions rocketmq-store/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

0 comments on commit 9a980eb

Please sign in to comment.