Change project structure

For the server and "client" to be able to communicate with eachother,
I'll be using DBus (https://www.freedesktop.org/wiki/Software/dbus/)
and the dbus-crate (https://crates.io/crates/dbus/).
Also, it will probably be better to split the server and client/daemon
and control utility in two separate projects (using Cargo's workspaces
(https://doc.rust-lang.org/cargo/reference/workspaces.html)).
This commit is contained in:
Eli 2020-08-04 17:00:50 +02:00
parent 170a704fc9
commit 6999bca459
5 changed files with 27 additions and 15 deletions

View File

@ -1,15 +1,8 @@
[package] [workspace]
name = "sfs-mc" members = ["sfsmcd", "sfsmcctl"]
version = "0.1.0"
description = "More than a web server that dynamically show the status of a Minecraft server (formerly known as bukkit-server-status)"
authors = ["Elias Schriefer"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "2.33", features = ["wrap_help"] }
toml = "0.5" toml = "0.5"
tokio = { version = "0.2", features = ["full"] } tokio = { version = "0.2", features = ["full"] }
async-minecraft-ping = "0.2" async-minecraft-ping = "0.2"
actix-web = "2.0" dbus = "0.8"

View File

@ -14,3 +14,7 @@ More than a web server that dynamically show the status of a Minecraft server (f
- [ ] Config loading (using [`toml`](https://crates.io/crates/toml/)) - [ ] Config loading (using [`toml`](https://crates.io/crates/toml/))
- [ ] Config profiles - [ ] Config profiles
- [ ] Running in the background (using [`screen`](https://www.gnu.org/software/screen/)) - [ ] Running in the background (using [`screen`](https://www.gnu.org/software/screen/))
# Decisions made along the way
## 4th August 2020
For the server and "client" to be able to communicate with eachother, I'll be using [DBus](https://www.freedesktop.org/wiki/Software/dbus/) and the [`dbus`-crate](https://crates.io/crates/dbus/). Also, it will probably be better to split the server and client/daemon and control utility in two separate projects (using Cargo's [workspaces](https://doc.rust-lang.org/cargo/reference/workspaces.html)).

10
sfsmcctl/Cargo.toml Normal file
View File

@ -0,0 +1,10 @@
[package]
name = "sfsmcctl"
version = "0.1.0"
# description = "More than a web server that dynamically show the status of a Minecraft server (formerly known as bukkit-server-status)"
description = "Control the sfsmcd minecraft and status servers"
authors = ["Elias Schriefer"]
edition = "2018"
[dependencies]
clap = { version = "2.33", features = ["wrap_help"] }

9
sfsmcd/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "sfsmcd"
version = "0.1.0"
description = "A service that controls a minecraft and a web (status) server"
authors = ["Elias Schriefer"]
edition = "2018"
[dependencies]
actix-web = "2.0"

View File

@ -1,4 +0,0 @@
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}