Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

feat(core): Add Hotmail checks via headless password recovery (#1165)

Amaury7517ed98ba96
diff --git a/.env.example b/.env.example
index a1d9e327..9b7cd098 100644
--- a/.env.example
+++ b/.env.example
@@ -1,6 +1,15 @@
+# Copy this file to .env
+# ```bash
+# cp .env.example
+# ```
+#
+# Then tweak the values to match your desired config.
+
RUST_LOG=reacher=info
+SQLX_OFFLINE=1
+RCH_HOTMAIL_USE_HEADLESS=1
# To enable bulk email verification, set the value below to 1, and fill out all
-other env variables below.
+# other env variables below.
RCH_ENABLE_BULK=0
DATABASE_URL=postgres://localhost/reacherdb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f99bce7a..4c629dbd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,7 +22,7 @@ pub struct CheckEmailInput {
// --snip--
}
```
-* Remove `--http` flag has been removed from `check-if-email-exists` CLI. To run a HTTP backend, please refer to the [backend](./backend) subfolder.
+* The `--http` flag has been removed from `check-if-email-exists` CLI. To run a HTTP backend, please refer to the [backend](./backend) subfolder.
### Features
diff --git a/Cargo.lock b/Cargo.lock
index 7ab03cd0..4223b6e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,9 +23,9 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [
- "getrandom",
+ "getrandom 0.2.7",
"once_cell",
- "version_check",
+ "version_check 0.9.4",
]
[[package]]
@@ -114,7 +114,7 @@ dependencies = [
"concurrent-queue",
"futures-lite",
"libc",
- "log",
+ "log 0.4.17",
"once_cell",
"parking",
"polling",
@@ -142,7 +142,7 @@ dependencies = [
"native-tls",
"thiserror",
"tokio",
- "url",
+ "url 2.2.2",
]
[[package]]
@@ -153,7 +153,7 @@ checksum = "cf2c06e30a24e8c78a3987d07f0930edf76ef35e027e7bdb063fccafdad1f60c"
dependencies = [
"async-io",
"blocking",
- "cfg-if",
+ "cfg-if 1.0.0",
"event-listener",
"futures-lite",
"libc",
@@ -181,12 +181,12 @@ checksum = "6da21e1dd19fbad3e095ad519fb1558ab77fd82e5c4778dca8f9be0464589e1e"
dependencies = [
"async-native-tls",
"async-trait",
- "base64",
+ "base64 0.13.0",
"bufstream",
"fast-socks5",
"futures",
"hostname",
- "log",
+ "log 0.4.17",
"nom",
"pin-project",
"pin-utils",
@@ -215,7 +215,7 @@ dependencies = [
"futures-lite",
"gloo-timers",
"kv-log-macro",
- "log",
+ "log 0.4.17",
"memchr",
"once_cell",
"pin-project-lite",
@@ -282,6 +282,29 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "auto_generate_cdp"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c784e363772b68d4a52cd18ac3aa6bb1c268421f0916be916461c965f269c09"
+dependencies = [
+ "convert_case",
+ "proc-macro2",
+ "quote",
+ "reqwest",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "autocfg"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78"
+dependencies = [
+ "autocfg 1.1.0",
+]
+
[[package]]
name = "autocfg"
version = "1.1.0"
@@ -296,13 +319,38 @@ checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7"
dependencies = [
"addr2line",
"cc",
- "cfg-if",
+ "cfg-if 1.0.0",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
+[[package]]
+name = "base64"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643"
+dependencies = [
+ "byteorder",
+ "safemem",
+]
+
+[[package]]
+name = "base64"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
+dependencies = [
+ "byteorder",
+]
+
+[[package]]
+name = "base64"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
+
[[package]]
name = "base64"
version = "0.13.0"
@@ -393,6 +441,27 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
+[[package]]
+name = "bzip2"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0"
+dependencies = [
+ "bzip2-sys",
+ "libc",
+]
+
+[[package]]
+name = "bzip2-sys"
+version = "0.1.11+1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+]
+
[[package]]
name = "cache-padded"
version = "1.2.0"
@@ -405,6 +474,12 @@ version = "1.0.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
+[[package]]
+name = "cfg-if"
+version = "0.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
+
[[package]]
name = "cfg-if"
version = "1.0.0"
@@ -413,17 +488,19 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "check-if-email-exists"
-version = "0.9.0"
+version = "0.9.1"
dependencies = [
+ "anyhow",
"async-native-tls",
"async-recursion",
"async-smtp",
"async-std",
"async-std-resolver",
"fast-socks5",
- "log",
+ "headless_chrome",
+ "log 0.4.17",
"mailchecker",
- "rand",
+ "rand 0.8.5",
"regex",
"reqwest",
"serde",
@@ -434,7 +511,7 @@ dependencies = [
[[package]]
name = "check-if-email-exists-cli"
-version = "0.9.0"
+version = "0.9.1"
dependencies = [
"check-if-email-exists",
"clap",
@@ -462,6 +539,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "chunked_transfer"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e"
+
[[package]]
name = "clap"
version = "3.2.17"
@@ -474,7 +557,7 @@ dependencies = [
"clap_lex",
"indexmap",
"once_cell",
- "strsim",
+ "strsim 0.10.0",
"termcolor",
"textwrap",
]
@@ -501,6 +584,15 @@ dependencies = [
"os_str_bytes",
]
+[[package]]
+name = "cloudabi"
+version = "0.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
+dependencies = [
+ "bitflags",
+]
+
[[package]]
name = "concurrent-queue"
version = "1.2.4"
@@ -510,6 +602,22 @@ dependencies = [
"cache-padded",
]
+[[package]]
+name = "convert_case"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
+
+[[package]]
+name = "cookie"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "888604f00b3db336d2af898ec3c1d5d0ddf5e6d462220f2ededc33a87ac4bbd5"
+dependencies = [
+ "time",
+ "url 1.7.2",
+]
+
[[package]]
name = "core-foundation"
version = "0.9.3"
@@ -550,13 +658,22 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d0165d2900ae6778e36e80bbc4da3b5eefccee9ba939761f9c2882a5d9af3ff"
+[[package]]
+name = "crc32fast"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
+dependencies = [
+ "cfg-if 1.0.0",
+]
+
[[package]]
name = "crossbeam-queue"
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cd42583b04998a5363558e5f9291ee5a5ff6b49944332103f251e7479a82aa7"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"crossbeam-utils",
]
@@ -566,7 +683,7 @@ version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"once_cell",
]
@@ -612,6 +729,41 @@ dependencies = [
"syn",
]
+[[package]]
+name = "darling"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d706e75d87e35569db781a9b5e2416cff1236a47ed380831f959382ccd5f858"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0c960ae2da4de88a91b2d920c2a7233b400bc33cb28453a2987822d8392519b"
+dependencies = [
+ "fnv",
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim 0.9.3",
+ "syn",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9b5a2f4ac4969822c62224815d069952656cadc7084fdca9751e6d959189b72"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn",
+]
+
[[package]]
name = "data-encoding"
version = "2.3.2"
@@ -628,6 +780,31 @@ dependencies = [
"uuid 0.8.2",
]
+[[package]]
+name = "derive_builder"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a71d29c78eaaf1534fc79955d500f7f7799ed350c97bceb6cfd908a2241eba7"
+dependencies = [
+ "darling",
+ "derive_builder_core",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "derive_builder_core"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cecb1f2c698fd8faf108b53ad47f1fc4cd0c2a16691fe2db2d371f52f71421"
+dependencies = [
+ "darling",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
[[package]]
name = "digest"
version = "0.9.0"
@@ -648,6 +825,16 @@ dependencies = [
"subtle",
]
+[[package]]
+name = "directories"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "551a778172a450d7fc12e629ca3b0428d00f6afa9a43da1b630d54604e97371c"
+dependencies = [
+ "cfg-if 0.1.10",
+ "dirs-sys",
+]
+
[[package]]
name = "dirs"
version = "4.0.0"
@@ -698,7 +885,7 @@ version = "0.8.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
]
[[package]]
@@ -721,7 +908,7 @@ checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
dependencies = [
"atty",
"humantime",
- "log",
+ "log 0.4.17",
"regex",
"termcolor",
]
@@ -732,6 +919,15 @@ version = "2.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
+[[package]]
+name = "failure"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
+dependencies = [
+ "backtrace",
+]
+
[[package]]
name = "fast-socks5"
version = "0.8.1"
@@ -739,7 +935,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2687b5a6108f18ba8621e0e618a3be1dcc2768632dad24b7cea1f87975375a9"
dependencies = [
"anyhow",
- "log",
+ "log 0.4.17",
"thiserror",
"tokio",
"tokio-stream",
@@ -763,6 +959,16 @@ dependencies = [
"instant",
]
+[[package]]
+name = "flate2"
+version = "1.0.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide",
+]
+
[[package]]
name = "fnv"
version = "1.0.7"
@@ -791,9 +997,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
dependencies = [
"matches",
- "percent-encoding",
+ "percent-encoding 2.1.0",
]
+[[package]]
+name = "fuchsia-cprng"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
+
[[package]]
name = "futures"
version = "0.3.23"
@@ -916,7 +1128,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9"
dependencies = [
"typenum",
- "version_check",
+ "version_check 0.9.4",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.1.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
+dependencies = [
+ "cfg-if 1.0.0",
+ "libc",
+ "wasi 0.9.0+wasi-snapshot-preview1",
]
[[package]]
@@ -925,7 +1148,7 @@ version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
]
@@ -991,13 +1214,13 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cff78e5788be1e0ab65b04d306b2ed5092c815ec97ec70f4ebd5aee158aa55d"
dependencies = [
- "base64",
+ "base64 0.13.0",
"bitflags",
"bytes",
"headers-core",
"http",
"httpdate",
- "mime",
+ "mime 0.3.16",
"sha-1 0.10.0",
]
@@ -1010,6 +1233,31 @@ dependencies = [
"http",
]
+[[package]]
+name = "headless_chrome"
+version = "0.9.0"
+source = "git+https://github.com/atroche/rust-headless-chrome#3aecbf81016c036a21875db4cb773639e25ced6b"
+dependencies = [
+ "anyhow",
+ "auto_generate_cdp",
+ "base64 0.10.1",
+ "derive_builder",
+ "directories",
+ "log 0.4.17",
+ "rand 0.7.3",
+ "regex",
+ "serde",
+ "serde_json",
+ "tempfile",
+ "thiserror",
+ "ureq",
+ "walkdir",
+ "websocket",
+ "which",
+ "winreg 0.6.2",
+ "zip",
+]
+
[[package]]
name = "heck"
version = "0.4.0"
@@ -1103,6 +1351,25 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
+[[package]]
+name = "hyper"
+version = "0.10.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273"
+dependencies = [
+ "base64 0.9.3",
+ "httparse",
+ "language-tags",
+ "log 0.3.9",
+ "mime 0.2.6",
+ "num_cpus",
+ "time",
+ "traitobject",
+ "typeable",
+ "unicase 1.4.2",
+ "url 1.7.2",
+]
+
[[package]]
name = "hyper"
version = "0.14.20"
@@ -1134,7 +1401,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
dependencies = [
"bytes",
- "hyper",
+ "hyper 0.14.20",
"native-tls",
"tokio",
"tokio-native-tls",
@@ -1153,6 +1420,23 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "idna"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
+dependencies = [
+ "matches",
+ "unicode-bidi",
+ "unicode-normalization",
+]
+
[[package]]
name = "idna"
version = "0.2.3"
@@ -1170,7 +1454,7 @@ version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
"hashbrown",
]
@@ -1180,7 +1464,7 @@ version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
]
[[package]]
@@ -1237,9 +1521,15 @@ version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
dependencies = [
- "log",
+ "log 0.4.17",
]
+[[package]]
+name = "language-tags"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
+
[[package]]
name = "lazy_static"
version = "1.4.0"
@@ -1264,17 +1554,26 @@ version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
"scopeguard",
]
+[[package]]
+name = "log"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
+dependencies = [
+ "log 0.4.17",
+]
+
[[package]]
name = "log"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"value-bag",
]
@@ -1324,6 +1623,15 @@ version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
+[[package]]
+name = "mime"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0"
+dependencies = [
+ "log 0.3.9",
+]
+
[[package]]
name = "mime"
version = "0.3.16"
@@ -1336,8 +1644,8 @@ version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef"
dependencies = [
- "mime",
- "unicase",
+ "mime 0.3.16",
+ "unicase 2.6.0",
]
[[package]]
@@ -1362,7 +1670,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"
dependencies = [
"libc",
- "log",
+ "log 0.4.17",
"wasi 0.11.0+wasi-snapshot-preview1",
"windows-sys",
]
@@ -1375,11 +1683,11 @@ checksum = "00dec633863867f29cb39df64a397cdf4a6354708ddd7759f70c7fb51c5f9182"
dependencies = [
"buf_redux",
"httparse",
- "log",
- "mime",
+ "log 0.4.17",
+ "mime 0.3.16",
"mime_guess",
"quick-error",
- "rand",
+ "rand 0.8.5",
"safemem",
"tempfile",
"twoway",
@@ -1393,7 +1701,7 @@ checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9"
dependencies = [
"lazy_static",
"libc",
- "log",
+ "log 0.4.17",
"openssl",
"openssl-probe",
"openssl-sys",
@@ -1419,7 +1727,7 @@ version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
"num-traits",
]
@@ -1429,7 +1737,7 @@ version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
]
[[package]]
@@ -1470,7 +1778,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0"
dependencies = [
"bitflags",
- "cfg-if",
+ "cfg-if 1.0.0",
"foreign-types",
"libc",
"once_cell",
@@ -1510,7 +1818,7 @@ version = "0.9.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
"cc",
"libc",
"openssl-src",
@@ -1557,7 +1865,7 @@ version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"instant",
"libc",
"redox_syscall",
@@ -1571,7 +1879,7 @@ version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"libc",
"redox_syscall",
"smallvec",
@@ -1584,6 +1892,12 @@ version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9423e2b32f7a043629287a536f21951e8c6a82482d0acb1eeebfc90bc2225b22"
+[[package]]
+name = "percent-encoding"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
+
[[package]]
name = "percent-encoding"
version = "2.1.0"
@@ -1634,9 +1948,9 @@ version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "685404d509889fade3e86fe3a5803bca2ec09b0c0778d5ada6ec8bf7a8de5259"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"libc",
- "log",
+ "log 0.4.17",
"wepoll-ffi",
"winapi",
]
@@ -1657,7 +1971,7 @@ dependencies = [
"proc-macro2",
"quote",
"syn",
- "version_check",
+ "version_check 0.9.4",
]
[[package]]
@@ -1668,7 +1982,7 @@ checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
- "version_check",
+ "version_check 0.9.4",
]
[[package]]
@@ -1680,6 +1994,15 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "qstring"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e"
+dependencies = [
+ "percent-encoding 2.1.0",
+]
+
[[package]]
name = "quick-error"
version = "1.2.3"
@@ -1695,6 +2018,38 @@ dependencies = [
"proc-macro2",
]
+[[package]]
+name = "rand"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
+dependencies = [
+ "autocfg 0.1.8",
+ "libc",
+ "rand_chacha 0.1.1",
+ "rand_core 0.4.2",
+ "rand_hc 0.1.0",
+ "rand_isaac",
+ "rand_jitter",
+ "rand_os",
+ "rand_pcg",
+ "rand_xorshift",
+ "winapi",
+]
+
+[[package]]
+name = "rand"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
+dependencies = [
+ "getrandom 0.1.16",
+ "libc",
+ "rand_chacha 0.2.2",
+ "rand_core 0.5.1",
+ "rand_hc 0.2.0",
+]
+
[[package]]
name = "rand"
version = "0.8.5"
@@ -1702,8 +2057,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
- "rand_chacha",
- "rand_core",
+ "rand_chacha 0.3.1",
+ "rand_core 0.6.3",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef"
+dependencies = [
+ "autocfg 0.1.8",
+ "rand_core 0.3.1",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.5.1",
]
[[package]]
@@ -1713,7 +2088,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
- "rand_core",
+ "rand_core 0.6.3",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
+dependencies = [
+ "rand_core 0.4.2",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
+
+[[package]]
+name = "rand_core"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
+dependencies = [
+ "getrandom 0.1.16",
]
[[package]]
@@ -1722,7 +2121,87 @@ version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
dependencies = [
- "getrandom",
+ "getrandom 0.2.7",
+]
+
+[[package]]
+name = "rand_hc"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4"
+dependencies = [
+ "rand_core 0.3.1",
+]
+
+[[package]]
+name = "rand_hc"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
+dependencies = [
+ "rand_core 0.5.1",
+]
+
+[[package]]
+name = "rand_isaac"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08"
+dependencies = [
+ "rand_core 0.3.1",
+]
+
+[[package]]
+name = "rand_jitter"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b"
+dependencies = [
+ "libc",
+ "rand_core 0.4.2",
+ "winapi",
+]
+
+[[package]]
+name = "rand_os"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
+dependencies = [
+ "cloudabi",
+ "fuchsia-cprng",
+ "libc",
+ "rand_core 0.4.2",
+ "rdrand",
+ "winapi",
+]
+
+[[package]]
+name = "rand_pcg"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
+dependencies = [
+ "autocfg 0.1.8",
+ "rand_core 0.4.2",
+]
+
+[[package]]
+name = "rand_xorshift"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
+dependencies = [
+ "rand_core 0.3.1",
+]
+
+[[package]]
+name = "rdrand"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
+dependencies = [
+ "rand_core 0.3.1",
]
[[package]]
@@ -1734,7 +2213,7 @@ dependencies = [
"csv",
"dotenv",
"env_logger",
- "log",
+ "log 0.4.17",
"openssl",
"sentry",
"serde",
@@ -1761,7 +2240,7 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b"
dependencies = [
- "getrandom",
+ "getrandom 0.2.7",
"redox_syscall",
"thiserror",
]
@@ -1804,7 +2283,7 @@ version = "0.11.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b75aa69a3f06bbcc66ede33af2af253c6f7a86b1ca0033f60c580a27074fbf92"
dependencies = [
- "base64",
+ "base64 0.13.0",
"bytes",
"encoding_rs",
"futures-core",
@@ -1812,15 +2291,15 @@ dependencies = [
"h2",
"http",
"http-body",
- "hyper",
+ "hyper 0.14.20",
"hyper-tls",
"ipnet",
"js-sys",
"lazy_static",
- "log",
- "mime",
+ "log 0.4.17",
+ "mime 0.3.16",
"native-tls",
- "percent-encoding",
+ "percent-encoding 2.1.0",
"pin-project-lite",
"serde",
"serde_json",
@@ -1829,7 +2308,7 @@ dependencies = [
"tokio-native-tls",
"tokio-socks",
"tower-service",
- "url",
+ "url 2.2.2",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
@@ -1846,6 +2325,21 @@ dependencies = [
"quick-error",
]
+[[package]]
+name = "ring"
+version = "0.16.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
+dependencies = [
+ "cc",
+ "libc",
+ "once_cell",
+ "spin",
+ "untrusted",
+ "web-sys",
+ "winapi",
+]
+
[[package]]
name = "rustc-demangle"
version = "0.1.21"
@@ -1861,6 +2355,19 @@ dependencies = [
"semver",
]
+[[package]]
+name = "rustls"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b25a18b1bf7387f0145e7f8324e700805aade3842dd3db2e74e4cdeb4677c09e"
+dependencies = [
+ "base64 0.10.1",
+ "log 0.4.17",
+ "ring",
+ "sct",
+ "webpki",
+]
+
[[package]]
name = "ryu"
version = "1.0.11"
@@ -1873,6 +2380,15 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
[[package]]
name = "schannel"
version = "0.1.20"
@@ -1895,6 +2411,16 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+[[package]]
+name = "sct"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce"
+dependencies = [
+ "ring",
+ "untrusted",
+]
+
[[package]]
name = "security-framework"
version = "2.6.1"
@@ -1974,7 +2500,7 @@ checksum = "f9a957270c9a430218f8031c866493061a27e35a70250e9527f093563a33ce6b"
dependencies = [
"chrono",
"lazy_static",
- "rand",
+ "rand 0.8.5",
"sentry-types",
"serde",
"serde_json",
@@ -2001,7 +2527,7 @@ dependencies = [
"serde",
"serde_json",
"thiserror",
- "url",
+ "url 2.2.2",
"uuid 0.8.2",
]
@@ -2055,7 +2581,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6"
dependencies = [
"block-buffer 0.9.0",
- "cfg-if",
+ "cfg-if 1.0.0",
"cpufeatures",
"digest 0.9.0",
"opaque-debug",
@@ -2067,18 +2593,33 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"cpufeatures",
"digest 0.10.3",
]
+[[package]]
+name = "sha1"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770"
+dependencies = [
+ "sha1_smol",
+]
+
+[[package]]
+name = "sha1_smol"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
+
[[package]]
name = "sha2"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"cpufeatures",
"digest 0.10.3",
]
@@ -2108,7 +2649,7 @@ version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
]
[[package]]
@@ -2127,6 +2668,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "spin"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
+
[[package]]
name = "sqlformat"
version = "0.1.8"
@@ -2156,7 +2703,7 @@ checksum = "8c21d3b5e7cadfe9ba7cdc1295f72cc556c750b4419c27c219c0693198901f8e"
dependencies = [
"ahash",
"atoi",
- "base64",
+ "base64 0.13.0",
"bitflags",
"byteorder",
"bytes",
@@ -2178,13 +2725,13 @@ dependencies = [
"indexmap",
"itoa 1.0.3",
"libc",
- "log",
+ "log 0.4.17",
"md-5",
"memchr",
"once_cell",
"paste",
- "percent-encoding",
- "rand",
+ "percent-encoding 2.1.0",
+ "rand 0.8.5",
"serde",
"serde_json",
"sha-1 0.10.0",
@@ -2195,7 +2742,7 @@ dependencies = [
"stringprep",
"thiserror",
"tokio-stream",
- "url",
+ "url 2.2.2",
"uuid 1.1.2",
"whoami",
]
@@ -2219,7 +2766,7 @@ dependencies = [
"sqlx-core",
"sqlx-rt",
"syn",
- "url",
+ "url 2.2.2",
]
[[package]]
@@ -2243,7 +2790,7 @@ dependencies = [
"anymap2",
"chrono",
"dotenv",
- "log",
+ "log 0.4.17",
"serde",
"serde_json",
"sqlx",
@@ -2273,6 +2820,12 @@ dependencies = [
"unicode-normalization",
]
+[[package]]
+name = "strsim"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
+
[[package]]
name = "strsim"
version = "0.10.0"
@@ -2302,7 +2855,7 @@ version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"fastrand",
"libc",
"redox_syscall",
@@ -2377,7 +2930,7 @@ version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581"
dependencies = [
- "autocfg",
+ "autocfg 1.1.0",
"bytes",
"libc",
"memchr",
@@ -2443,7 +2996,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "511de3f85caf1c98983545490c3d09685fa8eb634e57eec22bb4db271f46cbd8"
dependencies = [
"futures-util",
- "log",
+ "log 0.4.17",
"pin-project",
"tokio",
"tungstenite",
@@ -2458,7 +3011,7 @@ dependencies = [
"bytes",
"futures-core",
"futures-sink",
- "log",
+ "log 0.4.17",
"pin-project-lite",
"tokio",
]
@@ -2489,8 +3042,8 @@ version = "0.1.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307"
dependencies = [
- "cfg-if",
- "log",
+ "cfg-if 1.0.0",
+ "log 0.4.17",
"pin-project-lite",
"tracing-core",
]
@@ -2504,6 +3057,12 @@ dependencies = [
"once_cell",
]
+[[package]]
+name = "traitobject"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
+
[[package]]
name = "trust-dns-proto"
version = "0.21.2"
@@ -2511,22 +3070,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c31f240f59877c3d4bb3b3ea0ec5a6a0cff07323580ff8c7a605cd7d08b255d"
dependencies = [
"async-trait",
- "cfg-if",
+ "cfg-if 1.0.0",
"data-encoding",
"enum-as-inner",
"futures-channel",
"futures-io",
"futures-util",
- "idna",
+ "idna 0.2.3",
"ipnet",
"lazy_static",
- "log",
- "rand",
+ "log 0.4.17",
+ "rand 0.8.5",
"smallvec",
"thiserror",
"tinyvec",
"tokio",
- "url",
+ "url 2.2.2",
]
[[package]]
@@ -2535,11 +3094,11 @@ version = "0.21.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4ba72c2ea84515690c9fcef4c6c660bb9df3036ed1051686de84605b74fd558"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"futures-util",
"ipconfig",
"lazy_static",
- "log",
+ "log 0.4.17",
"lru-cache",
"parking_lot 0.12.1",
"resolv-conf",
@@ -2560,16 +3119,16 @@ version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0b2d8558abd2e276b0a8df5c05a2ec762609344191e5fd23e292c910e9165b5"
dependencies = [
- "base64",
+ "base64 0.13.0",
"byteorder",
"bytes",
"http",
"httparse",
- "log",
- "rand",
+ "log 0.4.17",
+ "rand 0.8.5",
"sha-1 0.9.8",
"thiserror",
- "url",
+ "url 2.2.2",
"utf-8",
]
@@ -2582,6 +3141,12 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "typeable"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
+
[[package]]
name = "typenum"
version = "1.15.0"
@@ -2597,13 +3162,22 @@ dependencies = [
"libc",
]
+[[package]]
+name = "unicase"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33"
+dependencies = [
+ "version_check 0.1.5",
+]
+
[[package]]
name = "unicase"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
dependencies = [
- "version_check",
+ "version_check 0.9.4",
]
[[package]]
@@ -2639,6 +3213,40 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
+[[package]]
+name = "untrusted"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
+
+[[package]]
+name = "ureq"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "801125e6d1ba6864cf3a5a92cfb2f0b0a3ee73e40602a0cd206ad2f3c040aa96"
+dependencies = [
+ "base64 0.11.0",
+ "chunked_transfer",
+ "cookie",
+ "lazy_static",
+ "qstring",
+ "rustls",
+ "url 2.2.2",
+ "webpki",
+ "webpki-roots",
+]
+
+[[package]]
+name = "url"
+version = "1.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
+dependencies = [
+ "idna 0.1.5",
+ "matches",
+ "percent-encoding 1.0.1",
+]
+
[[package]]
name = "url"
version = "2.2.2"
@@ -2646,9 +3254,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
dependencies = [
"form_urlencoded",
- "idna",
+ "idna 0.2.3",
"matches",
- "percent-encoding",
+ "percent-encoding 2.1.0",
"serde",
]
@@ -2664,7 +3272,7 @@ version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
dependencies = [
- "getrandom",
+ "getrandom 0.2.7",
"serde",
]
@@ -2674,7 +3282,7 @@ version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f"
dependencies = [
- "getrandom",
+ "getrandom 0.2.7",
]
[[package]]
@@ -2684,7 +3292,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2209b78d1249f7e6f3293657c9779fe31ced465df091bbd433a1cf88e916ec55"
dependencies = [
"ctor",
- "version_check",
+ "version_check 0.9.4",
]
[[package]]
@@ -2693,6 +3301,12 @@ version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+[[package]]
+name = "version_check"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
+
[[package]]
name = "version_check"
version = "0.9.4"
@@ -2705,13 +3319,24 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca"
+[[package]]
+name = "walkdir"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"
+dependencies = [
+ "same-file",
+ "winapi",
+ "winapi-util",
+]
+
[[package]]
name = "want"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
dependencies = [
- "log",
+ "log 0.4.17",
"try-lock",
]
@@ -2726,12 +3351,12 @@ dependencies = [
"futures-util",
"headers",
"http",
- "hyper",
- "log",
- "mime",
+ "hyper 0.14.20",
+ "log 0.4.17",
+ "mime 0.3.16",
"mime_guess",
"multipart",
- "percent-encoding",
+ "percent-encoding 2.1.0",
"pin-project",
"scoped-tls",
"serde",
@@ -2745,6 +3370,12 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "wasi"
+version = "0.9.0+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
+
[[package]]
name = "wasi"
version = "0.10.0+wasi-snapshot-preview1"
@@ -2763,7 +3394,7 @@ version = "0.2.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"wasm-bindgen-macro",
]
@@ -2774,7 +3405,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f"
dependencies = [
"bumpalo",
- "log",
+ "log 0.4.17",
"once_cell",
"proc-macro2",
"quote",
@@ -2788,7 +3419,7 @@ version = "0.4.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad"
dependencies = [
- "cfg-if",
+ "cfg-if 1.0.0",
"js-sys",
"wasm-bindgen",
"web-sys",
@@ -2833,6 +3464,41 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "webpki"
+version = "0.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea"
+dependencies = [
+ "ring",
+ "untrusted",
+]
+
+[[package]]
+name = "webpki-roots"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91cd5736df7f12a964a5067a12c62fa38e1bd8080aff1f80bc29be7c80d19ab4"
+dependencies = [
+ "webpki",
+]
+
+[[package]]
+name = "websocket"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b255b190f412e45000c35be7fe9b48b39a2ac5eb90d093d421694e5dae8b335c"
+dependencies = [
+ "base64 0.10.1",
+ "bitflags",
+ "byteorder",
+ "hyper 0.10.16",
+ "rand 0.6.5",
+ "sha1",
+ "unicase 1.4.2",
+ "url 1.7.2",
+]
+
[[package]]
name = "wepoll-ffi"
version = "0.1.2"
@@ -2842,6 +3508,16 @@ dependencies = [
"cc",
]
+[[package]]
+name = "which"
+version = "3.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724"
+dependencies = [
+ "failure",
+ "libc",
+]
+
[[package]]
name = "whoami"
version = "1.2.1"
@@ -2932,6 +3608,15 @@ version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
+[[package]]
+name = "winreg"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9"
+dependencies = [
+ "winapi",
+]
+
[[package]]
name = "winreg"
version = "0.7.0"
@@ -2949,3 +3634,17 @@ checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
dependencies = [
"winapi",
]
+
+[[package]]
+name = "zip"
+version = "0.5.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93ab48844d61251bb3835145c521d88aa4031d7139e8485990f60ca911fa0815"
+dependencies = [
+ "byteorder",
+ "bzip2",
+ "crc32fast",
+ "flate2",
+ "thiserror",
+ "time",
+]
diff --git a/Dockerfile b/Dockerfile
index 0bed93f8..3ad24eb9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,6 +37,8 @@ USER reacher
ENV RUST_LOG=reacher=info
ENV RCH_HTTP_HOST=0.0.0.0
ENV PORT=8080
+# Using a headless navigator to verify Hotmail emails is disabled. Set to 1 to enable it.
+ENV RCH_HOTMAIL_USE_HEADLESS=0
# Bulk verification is disabled by default. Set to 1 to enable it.
ENV RCH_ENABLE_BULK=0
diff --git a/README.md b/README.md
index 5c07ee25..91b038f2 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ Head to the [releases page](https://github.com/reacherhq/check-if-email-exists/r
```bash
> $ check_if_email_exists --help
-check_if_email_exists 0.9.0
+check_if_email_exists 0.9.1
Check if an email address exists without sending an email.
USAGE:
diff --git a/backend/Cargo.toml b/backend/Cargo.toml
index d94fa8a2..d0ce5025 100644
--- a/backend/Cargo.toml
+++ b/backend/Cargo.toml
@@ -7,7 +7,7 @@ publish = false
[dependencies]
async-smtp = "0.5"
-check-if-email-exists = { path = "../core" }
+check-if-email-exists = { path = "../core", features = ["headless"] }
csv = "1.1.6"
dotenv = "0.15.0"
env_logger = "0.9"
diff --git a/backend/README.md b/backend/README.md
index 1e6df52a..196d3148 100644
--- a/backend/README.md
+++ b/backend/README.md
@@ -50,10 +50,11 @@ These are the environment variables used to configure the HTTP server. To pass t
| Env Var | Required? | Description | Default |
| ----------------------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
-| `RCH_ENABLE_BULK` | No | If set to 1, then bulk verification endpoints will be added to the backend. | 0 |
+| `RCH_ENABLE_BULK` | No | If set to `1`, then bulk verification endpoints will be added to the backend. | 0 |
| `DATABASE_URL` | Yes if `RCH_ENABLE_BULK==1` | Database connection string for storing results and task queue | not defined |
| `RCH_HTTP_HOST` | No | The host name to bind the HTTP server to. | `127.0.0.1` |
| `PORT` | No | The port to bind the HTTP server to, often populated by the cloud provider. | `8080` |
+| `RCH_HOTMAIL_USE_HEADLESS` | No | If set to `1`, use a headless navigator to Hotmail's password recovery page to check Hotmail/Outlook addresses. Requires a local instance of Chrome/Chromium. | not defined |
| `RCH_FROM_EMAIL` | No | The email to use in the `MAIL FROM:` SMTP command. | `[email protected]` |
| `RCH_SENTRY_DSN` | No | If set, bug reports will be sent to this [Sentry](https://sentry.io) DSN. | not defined |
| `RCH_HEADER_SECRET` | No | If set, then all HTTP requests must have the `x-reacher-secret` header set to this value. This is used to protect the backend against public unwanted HTTP requests. | undefined |
diff --git a/backend/src/check.rs b/backend/src/check.rs
index 182d99c7..bf39c0c0 100644
--- a/backend/src/check.rs
+++ b/backend/src/check.rs
@@ -32,6 +32,9 @@ const SMTP_TIMEOUT: u64 = 30;
/// inputs and error handling.
pub async fn check_email(mut input: CheckEmailInput) -> CheckEmailOutput {
input.set_smtp_timeout(Duration::from_secs(SMTP_TIMEOUT));
+ input.set_hotmail_use_headless(
+ env::var("RCH_HOTMAIL_USE_HEADLESS").unwrap_or_else(|_| "".into()) == "1",
+ );
let res = ciee_check_email(&input).await;
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index a12b232b..2692da26 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "check-if-email-exists-cli"
-version = "0.9.0"
+version = "0.9.1"
default-run = "check_if_email_exists"
edition = "2018"
description = "Check if an email address exists without sending any email."
diff --git a/cli/README.md b/cli/README.md
index bbce0919..8bda86bc 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -15,7 +15,7 @@ Then run:
```bash
> $ check_if_email_exists --help
-check-if-email-exists-cli 0.9.0
+check-if-email-exists-cli 0.9.1
Check if an email address exists without sending any email.
USAGE:
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 8f141a09..f42692e4 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "check-if-email-exists"
-version = "0.9.0"
+version = "0.9.1"
authors = ["Amaury <[email protected]>"]
categories = ["email"]
description = "Check if an email address exists without sending any email"
@@ -13,12 +13,14 @@ readme = "../README.md"
repository = "https://github.com/reacherhq/check-if-email-exists"
[dependencies]
+anyhow = { version = "1.0.61", optional = true }
async-native-tls = { version = "0.4", default-features = false }
async-recursion = "1.0.0"
async-smtp = { version = "0.5.0", features = ["socks5"] }
async-std = "1.12.0"
async-std-resolver = "0.21.2"
fast-socks5 = "0.8.1"
+headless_chrome = { git = "https://github.com/atroche/rust-headless-chrome", features = ["fetch"], optional = true }
log = "0.4.17"
mailchecker = "5.0.0"
rand = {version = "0.8.5", features = ["small_rng"] }
@@ -30,3 +32,6 @@ trust-dns-proto = "0.21.2"
[dev-dependencies]
tokio = { version = "1.16.1" }
+
+[features]
+headless = ["anyhow", "headless_chrome"]
diff --git a/core/src/smtp/error.rs b/core/src/smtp/error.rs
index 74230c49..8abadb5c 100644
--- a/core/src/smtp/error.rs
+++ b/core/src/smtp/error.rs
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
+#[cfg(feature = "headless")]
+use super::hotmail::HotmailError;
use super::parser;
use super::yahoo::YahooError;
use crate::util::ser_with_display::ser_with_display;
@@ -35,8 +37,11 @@ pub enum SmtpError {
/// Time-out error.
#[serde(serialize_with = "ser_with_display")]
TimeoutError(future::TimeoutError),
- /// Error when verifying a Yahoo email.
+ /// Error when verifying a Yahoo email via HTTP requests.
YahooError(YahooError),
+ /// Error when verifying a Hotmail email via headless browser.
+ #[cfg(feature = "headless")]
+ HotmailError(HotmailError),
}
impl From<SocksError> for SmtpError {
@@ -57,6 +62,13 @@ impl From<YahooError> for SmtpError {
}
}
+#[cfg(feature = "headless")]
+impl From<HotmailError> for SmtpError {
+ fn from(e: HotmailError) -> Self {
+ SmtpError::HotmailError(e)
+ }
+}
+
impl SmtpError {
/// Get a human-understandable description of the error, in form of an enum
/// SmtpErrorDesc. This only parses the following known errors:
diff --git a/core/src/smtp/hotmail.rs b/core/src/smtp/hotmail.rs
new file mode 100644
index 00000000..7d1cfd93
--- /dev/null
+++ b/core/src/smtp/hotmail.rs
@@ -0,0 +1,82 @@
+// check-if-email-exists
+// Copyright (C) 2018-2022 Reacher
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+use async_smtp::EmailAddress;
+use headless_chrome::Browser;
+use serde::Serialize;
+
+use super::SmtpDetails;
+use crate::util::ser_with_display::ser_with_display;
+use crate::LOG_TARGET;
+
+#[derive(Debug, Serialize)]
+pub struct HotmailError {
+ #[serde(serialize_with = "ser_with_display")]
+ err: anyhow::Error,
+}
+
+impl From<anyhow::Error> for HotmailError {
+ fn from(err: anyhow::Error) -> Self {
+ Self { err }
+ }
+}
+
+pub fn check_password_recovery(to_email: &EmailAddress) -> Result<SmtpDetails, HotmailError> {
+ log::debug!(
+ target: LOG_TARGET,
+ "[email={}] Using Hotmail password recovery in headless navigator",
+ to_email,
+ );
+ let browser = Browser::default()?;
+ let tab = browser.wait_for_initial_tab()?;
+ let to_email = to_email.to_string();
+
+ // Navigate to Microsoft password recovery page.
+ tab.navigate_to("https://account.live.com/password/reset")?;
+
+ // Wait for network/javascript/dom to make the input-box available
+ // and click it.
+ tab.wait_for_element("input#iSigninName")?.click()?;
+
+ // Type in a query and press `Enter`
+ tab.type_str(to_email.as_str())?.press_key("Enter")?;
+
+ // We should end up on the WebKit-page once navigated
+ tab.wait_until_navigated()?;
+ let is_error = tab.find_element("#pMemberNameErr").is_ok();
+
+ if is_error {
+ log::debug!(
+ target: LOG_TARGET,
+ "[email={}] Found error message in password recovery, email does not exist",
+ to_email,
+ );
+ } else {
+ log::debug!(
+ target: LOG_TARGET,
+ "[email={}] Did not find error message in password recovery, email exists",
+ to_email,
+ );
+ }
+
+ Ok(SmtpDetails {
+ can_connect_smtp: true,
+ has_full_inbox: false,
+ is_catch_all: false,
+ is_deliverable: !is_error,
+ is_disabled: false,
+ })
+}
diff --git a/core/src/smtp/mod.rs b/core/src/smtp/mod.rs
index 93336b03..e27f255c 100644
--- a/core/src/smtp/mod.rs
+++ b/core/src/smtp/mod.rs
@@ -15,6 +15,8 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
pub mod error;
+#[cfg(feature = "headless")]
+mod hotmail;
mod parser;
mod yahoo;
@@ -315,6 +317,10 @@ async fn check_smtp_without_retry(
.await
.map_err(|err| err.into());
}
+ #[cfg(feature = "headless")]
+ if host.to_lowercase().to_string().contains("outlook") {
+ return hotmail::check_password_recovery(to_email).map_err(|err| err.into());
+ }
let fut = create_smtp_future(to_email, host, port, domain, input);
let (is_catch_all, deliverability) = if let Some(smtp_timeout) = input.smtp_timeout {
diff --git a/core/src/util/input_output.rs b/core/src/util/input_output.rs
index ddbc178e..009d7bbe 100644
--- a/core/src/util/input_output.rs
+++ b/core/src/util/input_output.rs
@@ -90,6 +90,12 @@ pub struct CheckEmailInput {
///
/// Defaults to true.
pub yahoo_use_api: bool,
+ /// For Hotmail/Outlook email addresses, use a headless navigator
+ /// connecting to the password recovery page instead of the SMTP server.
+ ///
+ /// Defaults to false.
+ #[cfg(feature = "headless")]
+ pub hotmail_use_headless: bool,
/// Number of retries of SMTP connections to do.
///
/// Defaults to 2 to avoid greylisting.
@@ -106,6 +112,8 @@ impl Default for CheckEmailInput {
to_email: "".into(),
from_email: "[email protected]".into(),
hello_name: "localhost".into(),
+ #[cfg(feature = "headless")]
+ hotmail_use_headless: false,
proxy: None,
smtp_port: 25,
smtp_security: SmtpSecurity::Opportunistic,
@@ -217,6 +225,15 @@ impl CheckEmailInput {
self.yahoo_use_api = use_api;
self
}
+
+ /// Set whether to use a headless navigator to navigate to Hotmail's
+ /// password recovery page to check whether an email exists or not.
+ /// Defaults to false.
+ #[cfg(feature = "headless")]
+ pub fn set_hotmail_use_headless(&mut self, use_api: bool) -> &mut CheckEmailInput {
+ self.yahoo_use_api = use_api;
+ self
+ }
}
/// An enum to describe how confident we are that the recipient address is