Please check the build logs and, if you believe this is docs.rs' fault, open an issue.
libgit2 bindings for Rust
[dependencies] git2 = "0.2"
First, you'll need to install CMake and pkg-config if you don't already have libgit2 installed elsewhere on the system. Afterwards, just run:
$ git clone --recursive https://github.com/alexcrichton/git2-rs $ cd git2-rs $ cargo build
git2-rs is primarily distributed under the terms of both the MIT license and
the Apache License (Version 2.0), with portions covered by various BSD-like
See LICENSE-APACHE, and LICENSE-MIT for details.