elf_utils 0.1.0

elf_rust utils
Documentation
# elf_utils

基于 elf_rust 的工具库

## 用法

```rust
use log::info;
use serde_json::Value;
use elf_utils::*;

async fn my_task(_ctx: Context, payload: Value) -> Result<String, String> {
    info!("Task running with sample value: {:?}",payload);
    Ok("Task result".to_string())
}

#[tokio::main]
async fn main() {
    default_handle_script("my_task", my_task).await;
}
```

## 依赖环境变量
- RUST_LOG=debug # 日志级别, 默认为 info
- FeiShu_WEBHOOK # 飞书机器人的 webhook
- FeiShu_SECRET # 飞书机器人的 secret
- TASK_MASTER # 任务维护者的飞书 ID
- REPORT_HOST # 报告的主机地址