Recaptcha-rs is a very simple library to verify recaptcha responses.
To use recaptcha-rs in your project you can add the following to your Cargo.toml
:
toml
[dependencies.recaptcha]
version = "0"
Verifying recaptcha responses is very easy: ```rust extern crate recaptcha;
fn main() { let res = recaptcha::verify("yourprivatekey", "userresponse", Some("userip"));
if res.is_ok() {
println!("Success");
} else {
println!("Failure");
}
}
```