aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Lawrence <scott+git@ineffectivetheory.com>2024-06-01 11:58:08 -0600
committerScott Lawrence <scott+git@ineffectivetheory.com>2024-06-01 11:58:08 -0600
commit563d4338d2039db9164d31cf9aaf68797d8adf03 (patch)
tree80ca369b8f4c39f6a3fbe58a29aa0514d90ff685
parent4efe817e075598cfa3ce2e85ec84f96a0d95c734 (diff)
downloadvaranus-563d4338d2039db9164d31cf9aaf68797d8adf03.tar.gz
varanus-563d4338d2039db9164d31cf9aaf68797d8adf03.tar.bz2
varanus-563d4338d2039db9164d31cf9aaf68797d8adf03.zip
Adding serde dependency for communication
-rw-r--r--Cargo.lock21
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs5
3 files changed, 27 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 78983be..7961e27 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -128,6 +128,26 @@ dependencies = [
]
[[package]]
+name = "serde"
+version = "1.0.203"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.203"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
name = "strsim"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -161,6 +181,7 @@ name = "varanus"
version = "0.1.0"
dependencies = [
"clap",
+ "serde",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 956a535..118e87c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,3 +7,4 @@ edition = "2021"
[dependencies]
clap = { version = "4.5.4", features = ["derive"] }
+serde = { version = "1.0.203", features = ["derive"] }
diff --git a/src/main.rs b/src/main.rs
index e9ce681..0701c7e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,5 @@
use clap::Parser;
+use serde::{Serialize,Deserialize};
#[derive(Parser)]
struct Cli {
@@ -8,6 +9,10 @@ struct Cli {
verbose: bool,
}
+#[derive(Serialize, Deserialize)]
+struct State {
+}
+
fn main() {
let args = Cli::parse();
if args.daemon {