feat: use derive
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-10-27 12:05:30 +01:00
parent c94f6b72b8
commit 892fdc9420
9 changed files with 161 additions and 4 deletions

73
Cargo.lock generated
View File

@@ -7,7 +7,7 @@ name = "action"
version = "0.1.0"
dependencies = [
"anyhow",
"cuddle-actions-sdk 0.2.0 (git+ssh://git@git.front.kjuulh.io/kjuulh/cuddle-v2)",
"cuddle-actions-sdk 0.2.0 (git+https://git.front.kjuulh.io/kjuulh/cuddle-v2)",
"tokio",
]
@@ -277,6 +277,7 @@ version = "0.2.0"
dependencies = [
"anyhow",
"clap",
"cuddle-actions-sdk-derive",
"pretty_assertions",
"serde",
"serde_json",
@@ -285,7 +286,7 @@ dependencies = [
[[package]]
name = "cuddle-actions-sdk"
version = "0.2.0"
source = "git+ssh://git@git.front.kjuulh.io/kjuulh/cuddle-v2#350a3669b04e3ae37fbb31f842f69e1e8afa1721"
source = "git+https://git.front.kjuulh.io/kjuulh/cuddle-v2#c94f6b72b8b17d1e94e63211155e93a4b28bcc80"
dependencies = [
"anyhow",
"clap",
@@ -293,6 +294,18 @@ dependencies = [
"serde_json",
]
[[package]]
name = "cuddle-actions-sdk-derive"
version = "0.2.0"
dependencies = [
"anyhow",
"darling",
"proc-macro-crate",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "cuddle-file"
version = "0.2.0"
@@ -354,6 +367,41 @@ dependencies = [
"toml",
]
[[package]]
name = "darling"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
dependencies = [
"darling_core",
"darling_macro",
]
[[package]]
name = "darling_core"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
"syn",
]
[[package]]
name = "darling_macro"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
dependencies = [
"darling_core",
"quote",
"syn",
]
[[package]]
name = "diff"
version = "0.1.13"
@@ -403,6 +451,12 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "fnv"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "fs_extra"
version = "1.3.0"
@@ -460,6 +514,12 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "ident_case"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "indexmap"
version = "2.6.0"
@@ -623,6 +683,15 @@ dependencies = [
"yansi",
]
[[package]]
name = "proc-macro-crate"
version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b"
dependencies = [
"toml_edit",
]
[[package]]
name = "proc-macro2"
version = "1.0.89"