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:
parent
170a704fc9
commit
6999bca459
13
Cargo.toml
13
Cargo.toml
@ -1,15 +1,8 @@
|
||||
[package]
|
||||
name = "sfs-mc"
|
||||
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
|
||||
[workspace]
|
||||
members = ["sfsmcd", "sfsmcctl"]
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "2.33", features = ["wrap_help"] }
|
||||
toml = "0.5"
|
||||
tokio = { version = "0.2", features = ["full"] }
|
||||
async-minecraft-ping = "0.2"
|
||||
actix-web = "2.0"
|
||||
dbus = "0.8"
|
@ -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 profiles
|
||||
- [ ] 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
10
sfsmcctl/Cargo.toml
Normal 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
9
sfsmcd/Cargo.toml
Normal 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"
|
@ -1,4 +0,0 @@
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
Ok(())
|
||||
}
|
Loading…
Reference in New Issue
Block a user