Split the worker to a sub package
This commit is contained in:
@ -29,15 +29,17 @@ maintenance = { status = "passively-maintained" }
|
|||||||
name = "snow-scanner"
|
name = "snow-scanner"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[[bin]]
|
[workspace]
|
||||||
name = "snow-scanner-worker"
|
|
||||||
path = "src/worker/worker.rs"
|
members = [
|
||||||
|
"src/worker"
|
||||||
|
]
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log2 = "0.1.11"
|
|
||||||
ws2 = "0.2.5"
|
ws2 = "0.2.5"
|
||||||
|
log2 = "0.1.11"
|
||||||
actix-web = "4"
|
actix-web = "4"
|
||||||
actix-files = "0.6.6"
|
actix-files = "0.6.6"
|
||||||
# mariadb-dev on Alpine
|
# mariadb-dev on Alpine
|
||||||
|
25
snow-scanner/src/worker/Cargo.toml
Normal file
25
snow-scanner/src/worker/Cargo.toml
Normal 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"
|
Reference in New Issue
Block a user