diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/app/mod.rs | 10 | ||||
-rw-r--r-- | server/src/app/run.rs | 9 | ||||
-rw-r--r-- | server/src/main.rs | 7 |
3 files changed, 26 insertions, 0 deletions
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() } |