This commit is contained in:
hz
2025-12-04 18:10:51 +08:00
parent d0dda6d23c
commit 1eee628b79
5 changed files with 24 additions and 8 deletions

11
packages/cron/Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "cron"
version = "0.1.0"
edition = "2024"
[dependencies]
actix-web.workspace = true
serde.workspace = true
serde_json.workspace = true
tokio.workspace = true
hutils.workspace = true

10
packages/cron/src/main.rs Normal file
View File

@@ -0,0 +1,10 @@
use actix_web::{App, HttpServer, main};
use hutils;
use hutils::logger::init_logger;
#[main]
async fn main() -> std::io::Result<()> {
init_logger();
HttpServer::new(move || App::new()).bind("127.0.0.1:8080")?.run().await
}