recaptcha 0.0.3

recaptcha response verification
docs.rs failed to build recaptcha-0.0.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: recaptcha-0.5.0

recaptcha-rs Build Status

Recaptcha-rs is a very simple library to verify recaptcha responses.

Installation

To use recaptcha-rs in your project you can add the following to your Cargo.toml:

[dependencies.recaptcha]
version = "0"

Usage

Verifying recaptcha responses is very easy:

extern crate recaptcha;

fn main() {
    let res = recaptcha::verify("your_private_key", "user_response", Some("user_ip"));

    if res.is_ok() {
        println!("Success");
    } else {
        println!("Failure");
    }
}