From 8960c3b1df82695f7a8070e1ef44eec3591a3b8b Mon Sep 17 00:00:00 2001 From: xqtc Date: Mon, 14 Oct 2024 19:02:22 +0200 Subject: [PATCH] Server --- server/Cargo.toml | 7 +++++++ server/src/main.rs | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 server/Cargo.toml create mode 100644 server/src/main.rs diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..6b18955 --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "meowlog-server" +version = "0.1.0" +edition = "2021" + +[dependencies] +tonic = "0.4.0" \ No newline at end of file diff --git a/server/src/main.rs b/server/src/main.rs new file mode 100644 index 0000000..7bf897d --- /dev/null +++ b/server/src/main.rs @@ -0,0 +1,6 @@ +use tonic; + +fn main() { + let addr = "[::1]:50051".parse(); + println!("Hello, world!"); +}