Crates.io | trustcaptcha |
lib.rs | trustcaptcha |
version | 2.0.0 |
created_at | 2025-06-15 14:53:41.174438+00 |
updated_at | 2025-06-17 16:56:08.337321+00 |
description | TrustCaptcha – Privacy-first CAPTCHA solution for Rust. GDPR-compliant, bot protection made in Europe. |
homepage | https://www.trustcomponent.com/en/products/captcha/integrations/rust-captcha |
repository | https://github.com/trustcomponent/trustcaptcha-rust |
max_upload_size | |
id | 1713376 |
size | 83,250 |
Protect websites and apps against bots and spam with a privacy-first, EU-hosted CAPTCHA solution.
TrustCaptcha combines proof-of-work, an AI bot-score and custom security rules to stop automated bot abuse — without image marking or puzzles
Key perks:
Read the full TrustCaptcha product overview for technical details and the security concept.
Need a walkthrough? See the Rust integration guide.
cargo add trustcaptcha-rust
// Retrieving the verification result
let verification_result = match CaptchaManager::get_verification_result("<your_secret_key>", "<verification_token_from_your_client>").await {
Ok(result) => result,
Err(e) => {
// Fetch verification result failed - handle error
error!("Failed to fetch verification result: {}", e);
return Ok(HttpResponse::InternalServerError().json(json!({"error": "Captcha verification failed"})));
}
};
// Act on the verification result
if !verification_result.verification_passed || verification_result.score > 0.5 {
info!("Verification failed or bot score > 0.5 – possible automated request.");
}
Congratulations — you have successfully validated the result of the CAPTCHA!
For detailed implementation instructions, read the Rust integration guide.
TrustCaptcha ships ready-made integrations for popular stacks:
Discover all our pre-built Integrations on our website.
Questions? We will be happy to help!