Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
feat: Add a HTTP server behind the `--http` flag (#85)
Amaury Martinyd8b733e5a571
diff --git a/Cargo.lock b/Cargo.lockindex 2fdabb57..5b1f1fa4 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -50,7 +50,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = ["autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)","backtrace-sys 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)","rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)","winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",@@ -113,7 +113,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"[[package]]name = "cfg-if"-version = "0.1.7"+version = "0.1.10"source = "registry+https://github.com/rust-lang/crates.io-index"[[package]]@@ -138,9 +138,11 @@ dependencies = ["check-if-email-exists 0.5.0","clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)","env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",- "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "hyper 0.13.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)","serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)","serde_json 1.0.42 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",][[package]]@@ -190,6 +192,14 @@ name = "core-foundation-sys"version = "0.6.2"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "crossbeam-channel"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "crossbeam-deque"version = "0.7.1"@@ -205,7 +215,7 @@ version = "0.7.1"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = ["arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)","lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)","memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",@@ -225,7 +235,7 @@ name = "crossbeam-utils"version = "0.6.5"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",]@@ -344,11 +354,25 @@ dependencies = ["futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "futures-channel-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "futures-core"version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "futures-core-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "futures-executor"version = "0.3.1"@@ -359,11 +383,26 @@ dependencies = ["futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "futures-executor-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "futures-io"version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "futures-io-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "futures-macro"version = "0.3.1"@@ -375,11 +414,29 @@ dependencies = ["syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "futures-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "futures-channel-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-executor-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-io-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "futures-sink"version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "futures-sink-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "futures-task"version = "0.3.1"@@ -403,16 +460,50 @@ dependencies = ["slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "futures-util-preview"+version = "0.3.0-alpha.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "futures-channel-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-io-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",+ "pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)",+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "getrandom"version = "0.1.12"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)","wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "h2"+version = "0.2.0-alpha.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "http 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)",+ "indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-codec 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "hostname"version = "0.1.5"@@ -422,6 +513,30 @@ dependencies = ["winutil 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "http"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "http-body"+version = "0.2.0-alpha.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "http 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "httparse"+version = "1.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "humantime"version = "1.3.0"@@ -430,6 +545,36 @@ dependencies = ["quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "hyper"+version = "0.13.0-alpha.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-channel-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "h2 0.2.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)",+ "http 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)",+ "http-body 0.2.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)",+ "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)",+ "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",+ "pin-project 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-net 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-timer 0.3.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tower-make 0.3.0-alpha.2a (registry+https://github.com/rust-lang/crates.io-index)",+ "tower-service 0.3.0-alpha.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "idna"version = "0.2.0"@@ -440,6 +585,14 @@ dependencies = ["unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "indexmap"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "iovec"version = "0.1.2"@@ -478,6 +631,9 @@ dependencies = [name = "lazy_static"version = "1.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",+][[package]]name = "lazycell"@@ -520,12 +676,20 @@ dependencies = ["scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "lock_api"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "log"version = "0.4.8"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",][[package]]@@ -620,7 +784,7 @@ name = "net2"version = "0.2.33"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)","winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",]@@ -653,7 +817,7 @@ version = "0.10.24"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = ["bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)","lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",@@ -694,6 +858,16 @@ dependencies = ["parking_lot_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "parking_lot"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "parking_lot_core"version = "0.4.0"@@ -706,11 +880,43 @@ dependencies = ["winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "parking_lot_core"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",+ "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)",+ "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",+ "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)",+ "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",+ "smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)",+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "percent-encoding"version = "2.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "pin-project"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "pin-project-internal 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "pin-project-internal"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "pin-utils"version = "0.1.0-alpha.4"@@ -989,6 +1195,11 @@ name = "scopeguard"version = "0.3.3"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "scopeguard"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "security-framework"version = "0.3.1"@@ -1064,17 +1275,30 @@ name = "socket2"version = "0.3.11"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)","redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)","winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "spin"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "stable_deref_trait"version = "1.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "string"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "strsim"version = "0.8.0"@@ -1116,7 +1340,7 @@ name = "tempfile"version = "3.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)","rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)","redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)",@@ -1148,6 +1372,16 @@ dependencies = ["lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "time"+version = "0.1.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",+ "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)",+ "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio"version = "0.1.22"@@ -1171,6 +1405,27 @@ dependencies = ["tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-codec 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-fs 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-macros 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-net 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-timer 0.3.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tracing-core 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-codec"version = "0.1.1"@@ -1181,6 +1436,18 @@ dependencies = ["tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-codec"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-current-thread"version = "0.1.6"@@ -1199,6 +1466,24 @@ dependencies = ["futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-executor"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",+ "crossbeam-deque 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",+ "crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tracing 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-fs"version = "0.1.6"@@ -1209,6 +1494,19 @@ dependencies = ["tokio-threadpool 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-fs"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-io"version = "0.1.12"@@ -1219,6 +1517,52 @@ dependencies = ["log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-io"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",+ "pin-project 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "tokio-macros"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "tokio-net"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)",+ "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",+ "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)",+ "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-codec 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tracing 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-reactor"version = "0.1.9"@@ -1246,6 +1590,17 @@ dependencies = ["futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-sync"+version = "0.2.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-tcp"version = "0.1.3"@@ -1286,6 +1641,19 @@ dependencies = ["tokio-executor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tokio-timer"+version = "0.3.0-alpha.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)",+ "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "tokio-udp"version = "0.1.3"@@ -1317,6 +1685,50 @@ dependencies = ["tokio-reactor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "tower-make"+version = "0.3.0-alpha.2a"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",+ "tower-service 0.3.0-alpha.2 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "tower-service"+version = "0.3.0-alpha.2"+source = "registry+https://github.com/rust-lang/crates.io-index"++[[package]]+name = "tracing"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "tracing-attributes 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",+ "tracing-core 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "tracing-attributes"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",+ "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)",+]++[[package]]+name = "tracing-core"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "trust-dns-proto"version = "0.8.0"@@ -1345,7 +1757,7 @@ name = "trust-dns-resolver"version = "0.12.0"source = "registry+https://github.com/rust-lang/crates.io-index"dependencies = [- "cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",+ "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)","failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)","futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)","ipconfig 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",@@ -1361,6 +1773,11 @@ dependencies = ["trust-dns-proto 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",]+[[package]]+name = "try-lock"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]name = "unicode-bidi"version = "0.3.4"@@ -1417,6 +1834,15 @@ name = "version_check"version = "0.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"+[[package]]+name = "want"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+dependencies = [+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",+ "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",+]+[[package]]name = "wasi"version = "0.7.0"@@ -1519,11 +1945,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c""checksum c2-chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7d64d04786e0f528460fc884753cf8dddcc466be308f6026f8e355c41a0e4101""checksum cc 1.0.31 (registry+https://github.com/rust-lang/crates.io-index)" = "c9ce8bb087aacff865633f0bd5aeaed910fe2fe55b55f4739527f2e023a2e53d"-"checksum cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11d43355396e872eefb45ce6342e4374ed7bc2b3a502d1b28e36d6e23c05d1f4"+"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822""checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9""checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f""checksum core-foundation 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "25b9e03f145fd4f2bf705e07b900cd41fc636598fe5dc452fd0db1441c3f496d""checksum core-foundation-sys 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e7ca8a5221364ef15ce201e8ed2f609fc312682a8f4e0e3d4aa5879764e0fa3b"+"checksum crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "c8ec7fcd21571dc78f96cc96243cab8d8f035247c3efd16c687be154c3fa9efa""checksum crossbeam-deque 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b18cd2e169ad86297e6bc0ad9aa679aee9daa4f19e8163860faf7c164e4f5a71""checksum crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "04c9e3102cc2d69cd681412141b390abd55a362afc1540965dad0ad4d34280b4""checksum crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b"@@ -1542,17 +1969,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)" = "45dc39533a6cae6da2b56da48edae506bb767ec07370f86f70fc062e9d435869""checksum futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b6f16056ecbb57525ff698bb955162d0cd03bee84e6241c27ff75c08d8ca5987""checksum futures-channel 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fcae98ca17d102fd8a3603727b9259fcf7fa4239b603d2142926189bc8999b86"+"checksum futures-channel-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "d5e5f4df964fa9c1c2f8bddeb5c3611631cacd93baf810fc8bb2fb4b495c263a""checksum futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "79564c427afefab1dfb3298535b21eda083ef7935b4f0ecbfcb121f0aec10866"+"checksum futures-core-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "b35b6263fb1ef523c3056565fa67b1d16f0a8604ff12b11b08c25f28a734c60a""checksum futures-executor 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1e274736563f686a837a0568b478bdabfeaec2dca794b5649b04e2fe1627c231"+"checksum futures-executor-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "75236e88bd9fe88e5e8bfcd175b665d0528fe03ca4c5207fabc028c8f9d93e98""checksum futures-io 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e676577d229e70952ab25f3945795ba5b16d63ca794ca9d2c860e5595d20b5ff"+"checksum futures-io-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "f4914ae450db1921a56c91bde97a27846287d062087d4a652efc09bb3a01ebda""checksum futures-macro 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "52e7c56c15537adb4f76d0b7a76ad131cb4d2f4f32d3b0bcabcbe1c7c5e87764"+"checksum futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "3b1dce2a0267ada5c6ff75a8ba864b4e679a9e2aa44262af7a3b5516d530d76e""checksum futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "171be33efae63c2d59e6dbba34186fe0d6394fb378069a76dfd80fdcffd43c16"+"checksum futures-sink-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "86f148ef6b69f75bb610d4f9a2336d4fc88c4b5b67129d1a340dd0fd362efeec""checksum futures-task 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0bae52d6b29cf440e298856fec3965ee6fa71b06aa7495178615953fd669e5f9""checksum futures-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c0d66274fb76985d3c62c886d1da7ac4c0903a8c9f754e8fe0f35a6a6cc39e76"+"checksum futures-util-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)" = "5ce968633c17e5f97936bd2797b6e38fb56cf16a7422319f7ec2e30d3c470e8d""checksum getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "473a1265acc8ff1e808cd0a1af8cee3c2ee5200916058a2ca113c29f2d903571"+"checksum h2 0.2.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)" = "0f107db1419ef8271686187b1a5d47c6431af4a7f4d98b495e7b7fc249bb0a78""checksum hostname 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "21ceb46a83a85e824ef93669c8b390009623863b5c195d1ba747292c0c72f94e"+"checksum http 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "2790658cddc82e82b08e25176c431d7015a0adeb1718498715cbd20138a0bf68"+"checksum http-body 0.2.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1f3aef6f3de2bd8585f5b366f3f550b5774500b4764d00cf00f903c95749eec3"+"checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9""checksum humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"+"checksum hyper 0.13.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "2d05aa523087ac0b9d8b93dd80d5d482a697308ed3b0dca7b0667511a7fa7cdc""checksum idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"+"checksum indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712d7b3ea5827fcb9d4fda14bf4da5f136f0db2ae9c8f4bd4e2d1c6fde4e6db2""checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08""checksum ipconfig 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "aa79fa216fbe60834a9c0737d7fcd30425b32d1c58854663e24d4c4b328ed83f""checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b"@@ -1563,6 +2003,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)" = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba""checksum linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83""checksum lock_api 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "62ebf1391f6acad60e5c8b43706dde4582df75c06698ab44511d15016bc2442c"+"checksum lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e57b3997725d2b60dbec1297f6c2e2957cc383db1cebd6be812163f969c7d586""checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7""checksum lru-cache 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c""checksum mailchecker 3.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e00552a4045f5fd34051058ab2d6374d7ba08fe0c4b4c1c9eafb80e778f1d405"@@ -1582,8 +2023,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum openssl-sys 0.9.49 (registry+https://github.com/rust-lang/crates.io-index)" = "f4fad9e54bd23bd4cbbe48fdc08a1b8091707ac869ef8508edea2fec77dcc884""checksum owning_ref 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "49a4b8ea2179e6a2e27411d3bca09ca6dd630821cf6894c6c7c8467a8ee7ef13""checksum parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ab41b4aed082705d1056416ae4468b6ea99d52599ecf3169b00088d43113e337"+"checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252""checksum parking_lot_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "94c8c7923936b28d546dfd14d4472eaf34c99b14e1c973a32b3e6d4eb04298c9"+"checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b""checksum percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"+"checksum pin-project 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "94b90146c7216e4cb534069fb91366de4ea0ea353105ee45ed297e2d1619e469"+"checksum pin-project-internal 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "44ca92f893f0656d3cba8158dd0f2b99b94de256a4a54e870bd6922fcc6c8355""checksum pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5894c618ce612a3fa23881b152b608bafb8c56cfc22f434a3ba3120b40f7b587""checksum pkg-config 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)" = "72d5370d90f49f70bd033c3d75e87fc529fbfff9d6f7cccef07d6170079d91ea""checksum ppv-lite86 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e3cbf9f658cdb5000fcf6f362b8ea2ba154b9f146a61c7a20d647034c6b6561b"@@ -1619,6 +2064,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997""checksum schannel 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "87f550b06b6cba9c8b8be3ee73f391990116bf527450d2556e9b9ce263b9a021""checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27"+"checksum scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b42e15e59b18a828bbf5c58ea01debb36b9b096346de35d941dcb89009f24a0d""checksum security-framework 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eee63d0f4a9ec776eeb30e220f0bc1e092c3ad744b2a379e3993070364d3adc2""checksum security-framework-sys 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9636f8989cbf61385ae4824b98c1aaa54c994d7d8b41f11c601ed799f0549a56""checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"@@ -1629,7 +2075,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8""checksum smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7""checksum socket2 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)" = "e8b74de517221a2cb01a53349cf54182acdc31a074727d3079068448c0676d85"+"checksum spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d""checksum stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8"+"checksum string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d""checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a""checksum syn 0.15.29 (registry+https://github.com/rust-lang/crates.io-index)" = "1825685f977249735d510a242a6727b46efe914bb67e38d30c071b1b72b1d5c2""checksum syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "661641ea2aa15845cddeb97dad000d22070bb5c1fb456b96c1cba883ec691e92"@@ -1638,21 +2086,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum termcolor 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "96d6098003bde162e4277c70665bd87c326f5a0c3f3fbfb285787fa482d54e6e""checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060""checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"+"checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f""checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6"+"checksum tokio 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1f17f5d6ab0f35c1506678b28fb1798bdf74fcb737e9843c7b17b73e426eba38""checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f"+"checksum tokio-codec 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9f5d22fd1e84bd4045d28813491cb7d7caae34d45c80517c2213f09a85e8787a""checksum tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "d16217cad7f1b840c5a97dfb3c43b0c871fef423a6e8d2118c604e843662a443""checksum tokio-executor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "0f27ee0e6db01c5f0b2973824547ce7e637b2ed79b891a9677b0de9bd532b6ac"+"checksum tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9ee9ceecf69145923834ea73f32ba40c790fd877b74a7817dd0b089f1eb9c7c8""checksum tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "3fe6dc22b08d6993916647d108a1a7d15b9cd29c4f4496c62b92c45b5041b7af"+"checksum tokio-fs 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0bf85e16971e06e680c622e0c1b455be94b086275c5ddcd6d4a83a2bfbb83cda""checksum tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5090db468dad16e1a7a54c8c67280c5e4b544f3d3e018f0b913b400261f85926"+"checksum tokio-io 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "112784d5543df30660b04a72ca423bfbd90e8bb32f94dcf610f15401218b22c5"+"checksum tokio-macros 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "86b616374bcdadd95974e1f0dfca07dc913f1163c53840c0d664aca35114964e"+"checksum tokio-net 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a441682cd32f3559383112c4a7f372f5c9fa1950c5cf8c8dd05274a2ce8c2654""checksum tokio-reactor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "6af16bfac7e112bea8b0442542161bfc41cbfa4466b580bdda7d18cb88b911ce""checksum tokio-sync 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2162248ff317e2bc713b261f242b69dbb838b85248ed20bb21df56d60ea4cae7"+"checksum tokio-sync 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "4f1aaeb685540f7407ea0e27f1c9757d258c7c6bf4e3eb19da6fc59b747239d2""checksum tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1d14b10654be682ac43efee27401d792507e30fd8d26389e1da3b185de2e4119""checksum tokio-threadpool 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "90ca01319dea1e376a001e8dc192d42ebde6dd532532a5bad988ac37db365b19""checksum tokio-timer 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "2910970404ba6fa78c5539126a9ae2045d62e3713041e447f695f41405a120c6"+"checksum tokio-timer 0.3.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b97c1587fe71018eb245a4a9daa13a5a3b681bbc1f7fdadfe24720e141472c13""checksum tokio-udp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "66268575b80f4a4a710ef83d087fdfeeabdce9b74c797535fbac18a2cb906e92""checksum tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "037ffc3ba0e12a0ab4aca92e5234e0dedeb48fddf6ccd260f1f150a36a9f2445"+"checksum tower-make 0.3.0-alpha.2a (registry+https://github.com/rust-lang/crates.io-index)" = "316d47dd40cde4ac5d88110eaf9a10a4e2a68612d9c056cd2aa24e37dcb484cd"+"checksum tower-service 0.3.0-alpha.2 (registry+https://github.com/rust-lang/crates.io-index)" = "63ff37396cd966ce43bea418bfa339f802857495f797dafa00bea5b7221ebdfa"+"checksum tracing 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ff4e4f59e752cb3beb5b61c6d5e11191c7946231ba84faec2902c9efdd8691c5"+"checksum tracing-attributes 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "a4263b12c3d3c403274493eb805966093b53214124796552d674ca1dd5d27c2b"+"checksum tracing-core 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bc913647c520c959b6d21e35ed8fa6984971deca9f0a2fcb8c51207e0c56af1d""checksum trust-dns-proto 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05457ece29839d056d8cb66ec080209d34492b3d2e7e00641b486977be973db9""checksum trust-dns-resolver 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cb1b3a41ee784f8da051cd342c6f42a3a75ee45818164acad867eac8f2f85332"+"checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382""checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5""checksum unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "141339a08b982d942be2ca06ff8b076563cbe223d1befd5450716790d44e2426""checksum unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7007dbd421b92cc6e28410fe7362e2e0a2503394908f417b68ec8d1c364c4e20"@@ -1662,6 +2126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index""checksum vcpkg 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95""checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a""checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"+"checksum want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0""checksum wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d""checksum widestring 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "effc0e4ff8085673ea7b9b2e3c73f6bd4d118810c9009ed8f1e16bd96c331db6""checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"diff --git a/cli/Cargo.toml b/cli/Cargo.tomlindex 0782b175..d483880f 100644--- a/cli/Cargo.toml+++ b/cli/Cargo.toml@@ -13,6 +13,8 @@ path = "src/main.rs"check-if-email-exists = { path = "../core" }clap = { version = "2.32", features = ["yaml"] }env_logger = "0.7"-futures = "0.3"+futures-preview = '0.3.0-alpha.19'+hyper = { version = "0.13.0-alpha.4", features = ["unstable-stream"] }serde = "1.0"serde_json = "1.0"+tokio = "0.2.0-alpha.6"diff --git a/cli/src/cli.yml b/cli/src/cli.ymlindex a07b6797..c7a94996 100644--- a/cli/src/cli.yml+++ b/cli/src/cli.yml@@ -8,7 +8,15 @@ args:long: fromhelp: The from email to use in the SMTP connectiontakes_value: true+ - HTTP:+ long: http+ help: Runs a HTTP server+ - HTTP_PORT:+ default_value: "3000"+ long: http-port+ help: Sets the port on which the HTTP server should bind. Only used when `--http` flag is on+ takes_value: true+ value_name: PORT- TO_EMAIL:help: The email to checkindex: 1- required: truediff --git a/cli/src/http.rs b/cli/src/http.rsnew file mode 100644index 00000000..c3049d73--- /dev/null+++ b/cli/src/http.rs@@ -0,0 +1,100 @@+// check-if-email-exists+// Copyright (C) 2018-2019 Amaury Martiny++// check-if-email-exists is free software: you can redistribute it and/or modify+// it under the terms of the GNU General Public License as published by+// the Free Software Foundation, either version 3 of the License, or+// (at your option) any later version.++// check-if-email-exists 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 General Public License for more details.++// You should have received a copy of the GNU General Public License+// along with check-if-email-exists. If not, see <http://www.gnu.org/licenses/>.++use check_if_email_exists::email_exists;+use futures::stream::TryStreamExt;+use hyper::service::{make_service_fn, service_fn};+use hyper::{Body, Method, Request, Response, Server, StatusCode};+use serde::{Deserialize, Serialize};++/// JSON Request from POST /+#[derive(Debug, Deserialize, Serialize)]+pub struct PostReqBody {+ from_email: Option<String>,+ to_email: String,+}++/// Error Response from POST /+#[derive(Debug, Deserialize, Serialize)]+pub struct PostResError {+ error: String,+}+async fn req_handler(req: Request<Body>) -> Result<Response<Body>, hyper::Error> {+ match (req.method(), req.uri().path()) {+ // Serve some instructions at /+ (&Method::GET, "/") => Ok(Response::new(Body::from(+ "Send a POST request with JSON `{ \"from_email\": \"<email>\", to_email: \"<email>\" }` in the body",+ ))),++ // Do email_exists check on POST /+ (&Method::POST, "/") => {+ let body = req.into_body().try_concat().await;+ let body = body.map(move |chunk| {+ chunk.iter().cloned().collect::<Vec<u8>>()++ })?;+ let body = match serde_json::from_slice::<PostReqBody>(&body) {+ Ok(b) => b,+ Err(err) => {+ return Ok(Response::builder()+ .status(StatusCode::BAD_REQUEST)+ .body(Body::from(format!("{}", err)))+ .expect("Response::builder with this body will not throw. qed.")+ );+ }+ };++ let body = email_exists(+ &body.to_email,+ &body.from_email.unwrap_or("[email protected]".into()),+ ).await;+ let body = match serde_json::to_string(&body) {+ Ok(b) => b,+ Err(err) => {+ return Ok(Response::builder()+ .status(StatusCode::BAD_REQUEST)+ .body(Body::from(format!("{}", err)))+ .expect("Response::builder with this body will not throw. qed.")+ );+ }+ };++ Ok(Response::new(Body::from(body)))+ }++ // Return the 404 Not Found for other routes.+ _ => {+ Ok(Response::builder()+ .status(StatusCode::NOT_FOUND)+ .body(Body::empty())+ .expect("Response::builder with this body will not throw. qed.")+ )+ }+ }+}++pub async fn run(port: u16) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {+ // This is our socket address+ let addr = ([127, 0, 0, 1], port).into();+ let service = make_service_fn(|_| async { Ok::<_, hyper::Error>(service_fn(req_handler)) });+ let server = Server::bind(&addr).serve(service);++ println!("Listening on http://{}", addr);++ server.await?;++ Ok(())+}diff --git a/cli/src/main.rs b/cli/src/main.rsindex 39339ca4..d317f967 100644--- a/cli/src/main.rs+++ b/cli/src/main.rs@@ -16,31 +16,52 @@extern crate clap;extern crate env_logger;+extern crate futures;+extern crate hyper;extern crate serde;+extern crate tokio;++mod http;use check_if_email_exists::email_exists;use clap::App;-use futures::executor::block_on;use serde_json;-fn main() -> serde_json::Result<()> {+#[tokio::main]+async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {env_logger::init();// The YAML file is found relative to the current file, similar to how modules are foundlet yaml = clap::load_yaml!("cli.yml");let matches = App::from_yaml(yaml).get_matches();- let from_email = matches- .value_of("FROM_EMAIL")- .expect("FROM_EMAIL has a default value. qed.");- let to_email = matches- .value_of("TO_EMAIL")- .expect("TO_EMAIL is required. qed.");+ let to_email_flag = matches.value_of("TO_EMAIL");++ if let Some(to_email) = to_email_flag {+ let from_email = matches+ .value_of("FROM_EMAIL")+ .expect("FROM_EMAIL has a default value. qed.");++ let result = email_exists(&to_email, &from_email).await;++ match serde_json::to_string_pretty(&result) {+ Ok(output) => {+ println!("{}", output);+ }+ Err(err) => {+ println!("{}", err);+ }+ };+ }- let result = block_on(email_exists(&to_email, &from_email));+ // Run the web server if flag is on+ if matches.is_present("HTTP") {+ let http_port = matches+ .value_of("HTTP_PORT")+ .expect("HTTP_PORT has a default value. qed.");- let output = serde_json::to_string_pretty(&result)?;- println!("{}", output);+ http::run(http_port.parse::<u16>().unwrap()).await?+ }Ok(())}diff --git a/core/src/lib.rs b/core/src/lib.rsindex 36aec78c..8015bdf4 100644--- a/core/src/lib.rs+++ b/core/src/lib.rs@@ -39,6 +39,8 @@ use syntax::{address_syntax, SyntaxDetails, SyntaxError};/// All details about email address, MX records and SMTP responses#[derive(Debug)]pub struct SingleEmail {+ /// Input by the user+ pub input: String,/// Details about the MX hostpub mx: Result<MxDetails, MxError>,/// Details about the SMTP responses of the email@@ -60,6 +62,7 @@ impl Serialize for SingleEmail {}let mut map = serializer.serialize_map(Some(1))?;+ map.serialize_entry("input", &self.input)?;match &self.mx {Ok(t) => map.serialize_entry("mx", &t)?,Err(error) => map.serialize_entry("mx", &MyError { error })?,@@ -88,6 +91,7 @@ pub async fn email_exists(to_email: &str, from_email: &str) -> SingleEmail {Ok(s) => s,e => {return SingleEmail {+ input: to_email.into(),mx: Err(MxError::Skipped),smtp: Err(SmtpError::Skipped),syntax: e,@@ -101,6 +105,7 @@ pub async fn email_exists(to_email: &str, from_email: &str) -> SingleEmail {Ok(m) => m,e => {return SingleEmail {+ input: to_email.into(),mx: e,smtp: Err(SmtpError::Skipped),syntax: Ok(my_syntax),@@ -135,6 +140,7 @@ pub async fn email_exists(to_email: &str, from_email: &str) -> SingleEmail {};SingleEmail {+ input: to_email.into(),mx: Ok(my_mx),smtp: my_smtp,syntax: Ok(my_syntax),diff --git a/test_suite/src/lib.rs b/test_suite/src/lib.rsindex 49465e57..1fe1ae7b 100644--- a/test_suite/src/lib.rs+++ b/test_suite/src/lib.rs@@ -26,7 +26,7 @@ mod tests {let result = block_on(email_exists("foo", "[email protected]"));assert_eq!(serde_json::to_string(&result).unwrap(),- "{\"mx\":{\"error\":{\"type\":\"Skipped\"}},\"smtp\":{\"error\":{\"type\":\"Skipped\"}},\"syntax\":{\"error\":{\"type\":\"SyntaxError\",\"message\":\"invalid email address\"}}}"+ "{\"input\":\"foo\",\"mx\":{\"error\":{\"type\":\"Skipped\"}},\"smtp\":{\"error\":{\"type\":\"Skipped\"}},\"syntax\":{\"error\":{\"type\":\"SyntaxError\",\"message\":\"invalid email address\"}}}");}@@ -36,7 +36,7 @@ mod tests {assert_eq!(serde_json::to_string(&result).unwrap(),- "{\"mx\":{\"error\":{\"type\":\"ResolveError\",\"message\":\"no record found for name: bar.baz type: MX class: IN\"}},\"smtp\":{\"error\":{\"type\":\"Skipped\"}},\"syntax\":{\"address\":\"[email protected]\",\"domain\":\"bar.baz\",\"username\":\"foo\",\"valid_format\":true}}"+ "{\"input\":\"[email protected]\",\"mx\":{\"error\":{\"type\":\"ResolveError\",\"message\":\"no record found for name: bar.baz type: MX class: IN\"}},\"smtp\":{\"error\":{\"type\":\"Skipped\"}},\"syntax\":{\"address\":\"[email protected]\",\"domain\":\"bar.baz\",\"username\":\"foo\",\"valid_format\":true}}");}}