diff --git a/Cargo.lock b/Cargo.lock index 07ff39c..8e31693 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -527,6 +527,7 @@ dependencies = [ "clap", "color-print", "enum-iterator", + "macros", "redis", "serde", "serde_repr", @@ -886,6 +887,10 @@ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "macros" version = "0.1.0" +dependencies = [ + "quote", + "syn 2.0.68", +] [[package]] name = "md-5" diff --git a/Cargo.toml b/Cargo.toml index 806d3f3..d141765 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,14 +3,18 @@ members = ["fishctl", "macros"] resolver = "2" [workspace.dependencies] +macros = { path = "macros" } + chrono = "0.4" clap = "4.5" color-print = "0.3" enum-iterator = "2.1" +quote = "1.0" redis = "0.25" serde = "1.0" serde_repr = "0.1" sqlx = "0.7" +syn = "2.0" thiserror = "1.0" tokio = "1.38" toml = "0.8" diff --git a/fishctl/Cargo.toml b/fishctl/Cargo.toml index a848396..8f48a3d 100644 --- a/fishctl/Cargo.toml +++ b/fishctl/Cargo.toml @@ -7,6 +7,8 @@ edition = "2021" license = "MIT" [dependencies] +macros = { workspace = true } + chrono = { workspace = true } clap = { workspace = true, features = ["derive"] } color-print = { workspace = true } diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 037231c..fc188ca 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -6,4 +6,8 @@ license = "MIT" publish = false [lib] -proc-macro = true \ No newline at end of file +proc-macro = true + +[dependencies] +syn = { workspace = true } +quote = { workspace = true }