summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/Cargo.toml15
-rw-r--r--server/src/app/mod.rs10
-rw-r--r--server/src/app/run.rs9
-rw-r--r--server/src/main.rs7
4 files changed, 41 insertions, 0 deletions
diff --git a/server/Cargo.toml b/server/Cargo.toml
new file mode 100644
index 0000000..8ff78a2
--- /dev/null
+++ b/server/Cargo.toml
@@ -0,0 +1,15 @@
+[package]
+name = "bowshock-server"
+edition = "2021"
+
+version.workspace = true
+authors.workspace = true
+readme.workspace = true
+homepage.workspace = true
+repository.workspace = true
+
+[dependencies]
+bowshock = { path = "../core" }
+
+[lints]
+workspace = true
diff --git a/server/src/app/mod.rs b/server/src/app/mod.rs
new file mode 100644
index 0000000..0ec083c
--- /dev/null
+++ b/server/src/app/mod.rs
@@ -0,0 +1,10 @@
+// Copyright 2022-2024 Gabriel Bjørnager Jensen.
+
+mod run;
+
+pub struct App;
+
+impl App {
+ #[must_use]
+ pub fn new() -> Self { Self }
+}
diff --git a/server/src/app/run.rs b/server/src/app/run.rs
new file mode 100644
index 0000000..f04e42f
--- /dev/null
+++ b/server/src/app/run.rs
@@ -0,0 +1,9 @@
+// Copyright 2022-2024 Gabriel Bjørnager Jensen.
+
+use crate::App;
+
+impl App {
+ pub fn run(self) -> Result<(), i32> {
+ Ok(())
+ }
+}
diff --git a/server/src/main.rs b/server/src/main.rs
new file mode 100644
index 0000000..33f011d
--- /dev/null
+++ b/server/src/main.rs
@@ -0,0 +1,7 @@
+// Copyright 2022-2024 Gabriel Bjørnager Jensen.
+
+use bowshock::use_mod;
+
+use_mod!(pub app);
+
+fn main() -> Result<(), i32> { App::new().run() }