From 5c9234468fef8cf10839de0da65d7214db5f7612 Mon Sep 17 00:00:00 2001 From: monosans Date: Fri, 16 Jan 2026 01:18:33 +0300 Subject: [PATCH] fix: format dependency and URL examples in Cargo and config files for better readability --- Cargo.toml | 58 ++++++++++++++++---------------- config.toml | 96 ++++++++++++++++++++++++++--------------------------- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d7cb7d7..aa40a9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,67 +10,67 @@ async-trait = "=0.1.89" color-eyre = "=0.6.5" compact_str = { version = "=0.9.0", features = ["serde"] } crossterm = { version = "=0.29.0", default-features = false, features = [ - "event-stream", - "windows", + "event-stream", + "windows", ], optional = true } dhat = { version = "=0.3.3", optional = true } dirs = "=6.0.0" fancy-regex = "=0.17.0" foldhash = "=0.2.0" futures = { version = "=0.3.31", default-features = false, features = [ - "std", + "std", ], optional = true } hickory-resolver = "=0.25.2" http = "=1.4.0" httpdate = "=1.0.3" itoa = "=1.0.17" log = { version = "=0.4.29", features = [ - "max_level_debug", - "release_max_level_debug", - "std", + "max_level_debug", + "release_max_level_debug", + "std", ] } maxminddb = { version = "=0.27.1", features = ["mmap"] } parking_lot = "=0.12.5" rand = { version = "=0.9.2", default-features = false, features = [ - "std", - "thread_rng", + "std", + "thread_rng", ] } ratatui = { version = "=0.30.0", default-features = false, features = [ - "crossterm", - "layout-cache", + "crossterm", + "layout-cache", ], optional = true } reqwest = { version = "=0.13.1", features = ["brotli", "gzip", "socks"] } reqwest-middleware = "=0.5.0" rlimit = "=0.10.2" rustls = { version = "=0.23.36", default-features = false, features = [ - "aws_lc_rs", - "prefer-post-quantum", - "std", - "tls12", + "aws_lc_rs", + "prefer-post-quantum", + "std", + "tls12", ] } rustls-platform-verifier = "=0.6.2" serde = "=1.0.228" serde_json = "=1.0.149" smallvec = { version = "=1.15.1", features = [ - "const_generics", - "union", + "const_generics", + "union", ], optional = true } strum = { version = "=0.27.2", features = ["derive"], optional = true } tokio = { version = "=1.49.0", features = ["fs", "parking_lot", "signal"] } tokio-util = "=0.7.18" toml = { version = "=0.9.11", default-features = false, features = [ - "parse", - "serde", - "std", + "parse", + "serde", + "std", ] } tracing = { version = "=0.1.44", default-features = false, features = [ - "max_level_debug", - "release_max_level_debug", - "std", + "max_level_debug", + "release_max_level_debug", + "std", ] } tracing-subscriber = { version = "=0.3.22", features = ["parking_lot"] } tui-logger = { version = "=0.18.0", features = [ - "tracing-support", + "tracing-support", ], optional = true } url = "=2.5.8" @@ -87,12 +87,12 @@ mimalloc_v2 = ["dep:mimalloc"] mimalloc_v3 = ["dep:mimalloc", "mimalloc/v3"] tokio-multi-thread = [] tui = [ - "dep:crossterm", - "dep:futures", - "dep:ratatui", - "dep:smallvec", - "dep:strum", - "dep:tui-logger", + "dep:crossterm", + "dep:futures", + "dep:ratatui", + "dep:smallvec", + "dep:strum", + "dep:tui-logger", ] [profile.release] diff --git a/config.toml b/config.toml index 958d94f..06b2ce2 100644 --- a/config.toml +++ b/config.toml @@ -79,68 +79,68 @@ include_geolocation = true [scraping.http] enabled = true urls = [ - # Local file examples: - # "./my_http_proxies.txt", - # "/home/user/my_http_proxies.txt", - # "C:/Users/user/Desktop/my_http_proxies.txt", - # "file:///home/user/my_http_proxies.txt", + # Local file examples: + # "./my_http_proxies.txt", + # "/home/user/my_http_proxies.txt", + # "C:/Users/user/Desktop/my_http_proxies.txt", + # "file:///home/user/my_http_proxies.txt", - # Advanced URL configuration examples (with basic auth or custom headers): - # HTTP Basic Auth example: - # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, - # Custom headers example: - # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, + # Advanced URL configuration examples (with basic auth or custom headers): + # HTTP Basic Auth example: + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, + # Custom headers example: + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, - "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=http", - "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=https", - "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/http/data.txt", - "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/https/data.txt", - "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/HTTPS_RAW.txt", - "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/http_proxies.txt", - "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/http.txt", + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=http", + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=https", + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/http/data.txt", + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/https/data.txt", + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/HTTPS_RAW.txt", + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/http_proxies.txt", + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/http.txt", ] [scraping.socks4] enabled = true urls = [ - # Local file examples: - # "./my_socks4_proxies.txt", - # "/home/user/my_socks4_proxies.txt", - # "C:/Users/user/Desktop/my_socks4_proxies.txt", - # "file:///home/user/my_socks4_proxies.txt", + # Local file examples: + # "./my_socks4_proxies.txt", + # "/home/user/my_socks4_proxies.txt", + # "C:/Users/user/Desktop/my_socks4_proxies.txt", + # "file:///home/user/my_socks4_proxies.txt", - # Advanced URL configuration examples (with basic auth or custom headers): - # HTTP Basic Auth example: - # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, - # Custom headers example: - # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, + # Advanced URL configuration examples (with basic auth or custom headers): + # HTTP Basic Auth example: + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, + # Custom headers example: + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, - "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks4", - "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks4/data.txt", - "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS4_RAW.txt", - "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks4_proxies.txt", - "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks4.txt", + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks4", + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks4/data.txt", + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS4_RAW.txt", + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks4_proxies.txt", + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks4.txt", ] [scraping.socks5] enabled = true urls = [ - # Local file examples: - # "./my_socks5_proxies.txt", - # "/home/user/my_socks5_proxies.txt", - # "C:/Users/user/Desktop/my_socks5_proxies.txt", - # "file:///home/user/my_socks5_proxies.txt", + # Local file examples: + # "./my_socks5_proxies.txt", + # "/home/user/my_socks5_proxies.txt", + # "C:/Users/user/Desktop/my_socks5_proxies.txt", + # "file:///home/user/my_socks5_proxies.txt", - # Advanced URL configuration examples (with basic auth or custom headers): - # HTTP Basic Auth example: - # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, - # Custom headers example: - # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, + # Advanced URL configuration examples (with basic auth or custom headers): + # HTTP Basic Auth example: + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, + # Custom headers example: + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, - "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks5", - "https://raw.githubusercontent.com/hookzof/socks5_list/refs/heads/master/proxy.txt", - "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks5/data.txt", - "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS5_RAW.txt", - "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks5_proxies.txt", - "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks5.txt", + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks5", + "https://raw.githubusercontent.com/hookzof/socks5_list/refs/heads/master/proxy.txt", + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks5/data.txt", + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS5_RAW.txt", + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks5_proxies.txt", + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks5.txt", ]