Crates.io | trustcaptcha-rust |
lib.rs | trustcaptcha-rust |
version | 1.2.1 |
created_at | 2024-06-06 10:46:03.15565+00 |
updated_at | 2025-06-18 14:29:35.079739+00 |
description | (DEPRECATED) TrustCaptcha for Rust, providing captcha, security features, and GDPR-compliant user verification. |
homepage | https://www.trustcomponent.com/en/products/captcha/integrations/rust-captcha |
repository | https://github.com/trustcomponent/trustcaptcha-rust |
max_upload_size | |
id | 1263604 |
size | 83,524 |
Protect websites and apps against bots and spam with a privacy-first, EU-hosted CAPTCHA solution.
⚠️ DEPRECATED
This package has been renamed and is now maintained astrustcaptcha
(version 2.0.0 or above).
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.
Here you can see a short code example of a possible integration. Please refer to our provided documentation for complete and up-to-date integration instructions.
Installing the library
cargo add trustcaptcha-rust
Fetching and handling the result
// Retrieving the verification result
let verification_result = match CaptchaManager::get_verification_result(secret_key, "<verification_token_from_your_client>").await
// Do something with the verification result
if !verification_result.verification_passed || verification_result.score > 0.5 {
info!("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.");
}
TrustCaptcha ships ready-made integrations for popular stacks:
Discover all our pre-built Integrations on our website.
Questions? We will be happy to help!