aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Dußin2021-01-12 09:30:53 +0100
committerArne Dußin2021-01-12 09:31:21 +0100
commitb58e965327deef14d6414a912bb6698c6f745ce9 (patch)
tree053fcad42862f49cf4ff8d2c245d61cceda055eb
parentb1179849c28e50c39ac3c94af9dda86ee24beca0 (diff)
downloadgraf_karto-b58e965327deef14d6414a912bb6698c6f745ce9.tar.gz
graf_karto-b58e965327deef14d6414a912bb6698c6f745ce9.zip
Change to client-server structure
-rw-r--r--Cargo.toml13
-rw-r--r--src/client.rs (renamed from src/main.rs)1
-rw-r--r--src/server.rs0
3 files changed, 13 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0a8e040..725f8a8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,6 +4,17 @@ version = "0.1.1"
authors = ["Arne Dußin <arne.dussin@gmail.com>"]
edition = "2018"
+[build]
+target = "client"
+
+[[bin]]
+name = "client"
+path = "src/client.rs"
+
+[[bin]]
+name = "server"
+path = "src/server.rs"
+
[dependencies]
raylib = "3.0.0"
ron = "*"
@@ -16,4 +27,4 @@ xmltree = "*"
pretty_env_logger = "*"
log = "*"
thiserror = "*"
-float-cmp = "*" \ No newline at end of file
+float-cmp = "*"
diff --git a/src/main.rs b/src/client.rs
index 4d6f4ba..e100340 100644
--- a/src/main.rs
+++ b/src/client.rs
@@ -30,6 +30,7 @@ pub mod grid;
pub mod gui;
pub mod map;
pub mod math;
+pub mod server;
pub mod snapping;
pub mod svg;
pub mod tool;
diff --git a/src/server.rs b/src/server.rs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/server.rs