Browse Source

move patch_server to own crate

pull/142/head
jake 6 months ago
parent
commit
d71287ef9a
  1. 3
      Cargo.toml
  2. 15
      patch_server/Cargo.toml
  3. 0
      patch_server/src/lib.rs
  4. 2
      src/bin/main.rs
  5. 2
      src/bin/patch.rs
  6. 2
      src/lib.rs

3
Cargo.toml

@ -19,6 +19,7 @@ members = [
"shops",
"stats",
"trade",
"patch_server",
]
[workspace.dependencies]
@ -35,6 +36,7 @@ client = { path = "./client" }
drops = { path = "./drops" }
trade = { path = "./trade" }
room = { path = "./room" }
patch_server = { path = "./patch_server" }
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
@ -80,6 +82,7 @@ client = { workspace = true }
drops = { workspace = true }
trade = { workspace = true }
room = { workspace = true }
patch_server = { workspace = true }
libpso = { workspace = true }

15
patch_server/Cargo.toml

@ -0,0 +1,15 @@
[package]
name = "patch_server"
version = "0.1.0"
edition = "2021"
[dependencies]
networking = { workspace = true }
libpso = { workspace = true }
async-trait = { workspace = true }
rand = { workspace = true }
crc = { workspace = true }
ron = { workspace = true }
serde = { workspace = true }

0
src/patch/mod.rs → patch_server/src/lib.rs

2
src/bin/main.rs

@ -4,7 +4,7 @@ use log::{info};
use networking::interserver::AuthToken;
use elseware::login::login::LoginServerState;
use elseware::login::character::CharacterServerState;
use elseware::patch::{PatchServerState, generate_patch_tree, load_config, load_motd};
use patch_server::{PatchServerState, generate_patch_tree, load_config, load_motd};
use elseware::ship::ship::ShipServerStateBuilder;
use maps::Holiday;

2
src/bin/patch.rs

@ -1,4 +1,4 @@
use elseware::patch::{PatchServerState, generate_patch_tree, load_config_env, load_motd};
use patch_server::{PatchServerState, generate_patch_tree, load_config_env, load_motd};
use log::info;
fn main() {

2
src/lib.rs

@ -10,6 +10,6 @@ extern crate test;
//pub mod common;
//pub mod entity;
pub mod patch;
//pub mod patch;
pub mod login;
pub mod ship;
Loading…
Cancel
Save