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

View File

@@ -5,5 +5,5 @@ edition = "2021"
[dependencies]
anyhow = "1.0.91"
cuddle-actions-sdk = { git = "ssh://git@git.front.kjuulh.io/kjuulh/cuddle-v2", version = "0.2.0" }
cuddle-actions-sdk = { git = "https://git.front.kjuulh.io/kjuulh/cuddle-v2", version = "0.2.0" }
tokio = { version = "1.41.0", features = ["full"] }

View File

@@ -1,5 +1,14 @@
use cuddle_actions_sdk::AddActionOptions;
struct Registry;
#[Actions]
impl Registry {
pub async fn something() -> anyhow::Result<()> {
Ok(())
}
}
#[tokio::main]
async fn main() -> anyhow::Result<()> {
cuddle_actions_sdk::CuddleActions::default()

View File

@@ -1 +0,0 @@