Split the worker to a sub package

This commit is contained in:
2024-09-27 22:28:23 +02:00
parent 36468e4baf
commit d84918851b
2 changed files with 31 additions and 4 deletions

View File

@ -29,15 +29,17 @@ maintenance = { status = "passively-maintained" }
name = "snow-scanner"
path = "src/main.rs"
[[bin]]
name = "snow-scanner-worker"
path = "src/worker/worker.rs"
[workspace]
members = [
"src/worker"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log2 = "0.1.11"
ws2 = "0.2.5"
log2 = "0.1.11"
actix-web = "4"
actix-files = "0.6.6"
# mariadb-dev on Alpine

View File

@ -0,0 +1,25 @@
[package]
name = "snow-scanner-worker"
version = "0.1.0"
authors = ["William Desportes <williamdes@wdes.fr>"]
edition = "2021"
rust-version = "1.78.0" # MSRV
description = "The CLI to run a snow-scanner worker"
[[bin]]
name = "snow-scanner-worker"
path = "worker.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
ws2 = "0.2.5"
log2 = "0.1.11"
diesel = { version = "2.2.0", default-features = false, features = [] }
dns-ptr-resolver = {git = "https://github.com/wdes/dns-ptr-resolver.git"}
hickory-resolver = { version = "0.24.1", default-features = false, features = ["tokio-runtime", "dns-over-h3", "dns-over-https", "dns-over-quic"]}
chrono = "0.4.38"
uuid = { version = "1.10.0", default-features = false, features = ["v7", "serde", "std"] }
cidr = "0.2.2"
serde = "1.0.210"
serde_json = "1.0.128"