Skip to content
Clone

feat(chat): add chatlayer crate (workspace + manifest + entrypoint)

zhenyi committed
parent 2138ab4 commit 76adbac Browse files

3 files changed

+29 −1

File tree 3
Added chat/chatlayer/Cargo.toml View chat/chatlayer/Cargo.toml
@@ -0,0 +1,14 @@
1[package]
2name = "chatlayer"
3version.workspace = true
4edition.workspace = true
5authors.workspace = true
6categories.workspace = true
7keywords.workspace = true
8repository.workspace = true
9homepage.workspace = true
10
11[lib]
12path = "lib.rs"
13name = "chatlayer"
14[dependencies]
Added chat/chatlayer/lib.rs View chat/chatlayer/lib.rs
@@ -0,0 +1,14 @@
1pub fn add(left: u64, right: u64) -> u64 {
2 left + right
3}
4
5#[cfg(test)]
6mod tests {
7 use super::*;
8
9 #[test]
10 fn it_works() {
11 let result = add(2, 2);
12 assert_eq!(result, 4);
13 }
14}
Modified Cargo.toml View Cargo.toml
@@ -26,7 +26,7 @@
2626 "lib/storage",
2727 "lib/user",
2828 "lib/webapi",
29 "lib/webhook",
29 "lib/webhook", "chat/chatlayer",
3030]
3131
3232