move lib, server and client to separate packages

This commit is contained in:
Johannes Heuel
2022-09-14 12:38:11 +02:00
parent 32f92b9320
commit 6e925b731e
10 changed files with 590 additions and 39 deletions

9
zoidberg_lib/Cargo.toml Normal file
View File

@@ -0,0 +1,9 @@
[package]
name = "zoidberg_lib"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }

1
zoidberg_lib/src/lib.rs Normal file
View File

@@ -0,0 +1 @@
pub mod types;

View File

@@ -0,0 +1,7 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct Update {
pub id: i64,
pub status: String,
}