diff --git a/Cargo.lock b/Cargo.lock index 2cf0646..afe9cfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -377,7 +377,6 @@ dependencies = [ "clap", "dashmap", "env_logger", - "futures", "headless_chrome", "log", "once_cell", @@ -555,21 +554,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "futures" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" version = "0.3.30" @@ -577,7 +561,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", - "futures-sink", ] [[package]] @@ -586,34 +569,12 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" -[[package]] -name = "futures-executor" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" -[[package]] -name = "futures-macro" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.46", -] - [[package]] name = "futures-sink" version = "0.3.30" @@ -632,11 +593,8 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ - "futures-channel", "futures-core", "futures-io", - "futures-macro", - "futures-sink", "futures-task", "memchr", "pin-project-lite", diff --git a/Cargo.toml b/Cargo.toml index 15d26d9..3219049 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,4 +51,3 @@ regex = "1.10.2" url = "2.5.0" tokio = { version = "1.35.1", features = ["full"] } dashmap = { version = "5.4", features = ["serde"] } -futures = "0.3.30" diff --git a/src/handler/sitemap.rs b/src/handler/sitemap.rs index 412dbd1..0ec80d1 100644 --- a/src/handler/sitemap.rs +++ b/src/handler/sitemap.rs @@ -2,7 +2,6 @@ use std::collections::HashSet; use std::sync::{Arc, Mutex}; use std::time; -use futures::stream::StreamExt; use reqwest::header::{HeaderMap, USER_AGENT}; use serde_derive::Deserialize; @@ -56,18 +55,25 @@ pub async fn sitemap(site: String) -> Result, Box