#captcha #privacy #gdpr #data-protection #back-end #trustcaptcha #european-union

trustcaptcha-rust

Trustcaptcha library for Rust, providing captcha, security features, and GDPR-compliant user verification

6 releases (stable)

1.2.0 Dec 20, 2024
1.0.3 Nov 8, 2024
1.0.2 Oct 26, 2024
1.0.1 Jun 9, 2024
0.0.1 Jun 6, 2024

#370 in HTTP server

Download history 1/week @ 2024-11-24 8/week @ 2024-12-01 13/week @ 2024-12-08 101/week @ 2024-12-15 12/week @ 2024-12-22 2/week @ 2025-01-05 2/week @ 2025-01-12

440 downloads per month

Apache-2.0

10KB
142 lines

Trustcaptcha Rust-Library

The Rust library helps you to integrate Trustcaptcha into your Rust backend applications.

What is Trustcaptcha?

A captcha solution that protects you from bot attacks and puts a special focus on user experience and data protection.

You can find more information on your website: www.trustcaptcha.com.

How does the library work?

Detailed instructions and examples for using the library can be found in our documentation.

Short example

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.");
}

Ideas and support

If you have any ideas, suggestions, or need support, please contact us.

Dependencies

~17–29MB
~497K SLoC