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
fix(ci): Fix Windows build (#1397)
Amauryab2bb4184adb
diff --git a/ci/build.ps1 b/ci/build.ps1index 304e4063..cce1d777 100644--- a/ci/build.ps1+++ b/ci/build.ps1@@ -2,9 +2,12 @@ $cross = $args[0]$target_triple = $args[1]$release_build = $args[2]+# reacher_worker doesn't compile on windows because of this bug:+# https://github.com/amqp-rs/reactor-trait/issues/1+# So we only build the check_if_email_exists binary for Windows.if ( $release_build -ne "RELEASE" ) {- Invoke-Expression "$cross build --target $target_triple"- Invoke-Expression "$cross build --target $target_triple --all-features"+ Invoke-Expression "$cross build --bin check_if_email_exists --target $target_triple"+ Invoke-Expression "$cross build --bin check_if_email_exists --target $target_triple --all-features"} else {- Invoke-Expression "$cross build --target $target_triple --all-features --release"+ Invoke-Expression "$cross build --bin check_if_email_exists --target $target_triple --all-features --release"}\ No newline at end of filediff --git a/ci/test.bash b/ci/test.bashindex f85e2483..779dac55 100755--- a/ci/test.bash+++ b/ci/test.bash@@ -12,5 +12,8 @@ TARGET_TRIPLE=$2required_arg $CROSS 'CROSS'required_arg $TARGET_TRIPLE '<Target Triple>'-$CROSS test --target $TARGET_TRIPLE-$CROSS test --target $TARGET_TRIPLE --all-features+# reacher_worker doesn't compile on windows because of this bug:+# https://github.com/amqp-rs/reactor-trait/issues/1+# So we only build the check_if_email_exists binary for Windows.+$CROSS test --bin check_if_email_exists --target $TARGET_TRIPLE+$CROSS test --bin check_if_email_exists --target $TARGET_TRIPLE --all-featuresdiff --git a/worker/src/main.rs b/worker/src/main.rsindex 9bf241d5..133b1239 100644--- a/worker/src/main.rs+++ b/worker/src/main.rs@@ -43,7 +43,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {let options = ConnectionProperties::default()// Use tokio executor and reactor.- // At the moment the reactor is only available for unix.+ // At the moment the reactor is only available for unix (ref: https://github.com/amqp-rs/reactor-trait/issues/1).with_executor(tokio_executor_trait::Tokio::current()).with_reactor(tokio_reactor_trait::Tokio).with_connection_name(backend_name.clone().into());