add cron
This commit is contained in:
11
packages/cron/Cargo.toml
Normal file
11
packages/cron/Cargo.toml
Normal 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
10
packages/cron/src/main.rs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user