From c64a7a640ac8c59eb6339f0a06d2ad2efab3fd11 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 7 Oct 2022 16:59:29 -0400 Subject: Start working on authentication --- protocol/Cargo.toml | 10 ++++++++++ protocol/src/lib.rs | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 protocol/Cargo.toml create mode 100644 protocol/src/lib.rs (limited to 'protocol') diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml new file mode 100644 index 0000000..2836fad --- /dev/null +++ b/protocol/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "protocol" +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.145", features = ["derive"] } +serde_json = "1.0.85" diff --git a/protocol/src/lib.rs b/protocol/src/lib.rs new file mode 100644 index 0000000..a56554f --- /dev/null +++ b/protocol/src/lib.rs @@ -0,0 +1,6 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] +pub struct UserInfo { + pub username: String, +} -- cgit v1.2.3