diff --git a/snow-scanner/Cargo.toml b/snow-scanner/Cargo.toml index 612b073..1a03ead 100644 --- a/snow-scanner/Cargo.toml +++ b/snow-scanner/Cargo.toml @@ -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 diff --git a/snow-scanner/src/worker/Cargo.toml b/snow-scanner/src/worker/Cargo.toml new file mode 100644 index 0000000..16d4be6 --- /dev/null +++ b/snow-scanner/src/worker/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "snow-scanner-worker" +version = "0.1.0" +authors = ["William Desportes "] +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"