summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-07 05:30:03 +0200
committernatrixaeria <janng@gmx.de>2019-05-07 05:30:03 +0200
commit6d988d13f7fc1652e2d041cfd1c4b40dce6a8adb (patch)
tree85b7e74033dfe9c7fc23158d45354bc757927f85
parentd574650f70daa0cee15220eea305ca7eb594a746 (diff)
Add the game server
-rw-r--r--.gitignore6
-rw-r--r--game_server/Cargo.toml9
-rwxr-xr-xgame_server/build.sh3
-rw-r--r--game_server/src/main.rs3
4 files changed, 21 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c3cc7dd..90ff30a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -263,3 +263,9 @@ __pycache__/
*.pyc
/ZooBOTanica/Critters
/DSACore/Token
+
+# Let the fockin cargo shit be
+Cargo.lock
+
+# dont save that target (bad boy)
+/game_server/target
diff --git a/game_server/Cargo.toml b/game_server/Cargo.toml
new file mode 100644
index 0000000..fba755c
--- /dev/null
+++ b/game_server/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "game-server"
+version = "0.1.0"
+authors = ["natrixaeria", "truedoctor"]
+edition = "2018"
+description = "A general game server for connections to web clients. Currently (on the way to) deploying a skribbl.io like game."
+
+[dependencies]
+rocket = "0.4"
diff --git a/game_server/build.sh b/game_server/build.sh
new file mode 100755
index 0000000..67e239f
--- /dev/null
+++ b/game_server/build.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+rustup run nightly cargo run
diff --git a/game_server/src/main.rs b/game_server/src/main.rs
new file mode 100644
index 0000000..e7a11a9
--- /dev/null
+++ b/game_server/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}