No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alex Crichton 308ba2a0e7
Merge pull request #294 from kamalmarhubi/git_odb_backend_malloc
libgit2-sys: Add missing git_odb_backend_malloc
2018-02-04 23:09:41 -06:00
examples Bump bitflags to 1.0 (#289) 2018-01-21 22:46:38 -06:00
git2-curl Include license files in git2-curl package 2018-01-17 20:53:51 +01:00
libgit2-sys libgit2-sys: Add missing git_odb_backend_malloc 2018-02-04 17:33:44 -05:00
src oid: Correct documentation of errors on from_str (#292) 2018-02-04 08:27:51 -06:00
systest Expand Bindings (#278) 2018-01-17 14:32:45 -06:00
.gitignore Add some feature gates 2015-01-29 09:11:15 -08:00
.gitmodules Point libgit2 submodule at libgit2 master 2015-04-05 10:08:49 -07:00
.travis.yml Tweak travis config 2017-12-03 11:13:37 -08:00
appveyor.yml pass TARGET on appveyor 2016-10-10 16:28:49 -07:00
Cargo.toml Bump bitflags to 1.0 (#289) 2018-01-21 22:46:38 -06:00
LICENSE-APACHE Add a MIT/APL2 license 2014-10-01 10:10:15 -07:00
LICENSE-MIT Add a MIT/APL2 license 2014-10-01 10:10:15 -07:00
README.md Correct project name in readme contribution section 2017-11-15 07:31:25 -08:00

git2-rs

Build Status Build Status

Documentation

libgit2 bindings for Rust

[dependencies]
git2 = "0.6"

Version of libgit2

Currently this library requires libgit2 0.25.1. The source for libgit2 is included in the libgit2-sys crate so there's no need to pre-install the libgit2 library, the libgit2-sys crate will figure that and/or build that for you.

Building git2-rs

First, you'll need to install CMake. Afterwards, just run:

$ git clone https://github.com/alexcrichton/git2-rs
$ cd git2-rs
$ cargo build

Building on OSX 10.10+

Currently libssh2 requires linking against OpenSSL, and to compile libssh2 it also needs to find the OpenSSL headers. On OSX 10.10+ the OpenSSL headers have been removed, but if you're using Homebrew you can install them via:

brew install openssl

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in git2-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.