Skip to content

Commit

Permalink
Update to libgit2's 1.0.0 release
Browse files Browse the repository at this point in the history
* Enable pkg-config by default now that it has a stable ABI
* Bump libgit2-sys version number
  • Loading branch information
alexcrichton committed Apr 1, 2020
1 parent 2e9fb0c commit 0a529b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libgit2-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libgit2-sys"
version = "0.12.1+0.99.0"
version = "0.12.2+1.0.0"
authors = ["Josh Triplett <josh@joshtriplett.org>", "Alex Crichton <alex@alexcrichton.com>"]
links = "git2"
build = "build.rs"
Expand Down
12 changes: 5 additions & 7 deletions libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ fn main() {
let https = env::var("CARGO_FEATURE_HTTPS").is_ok();
let ssh = env::var("CARGO_FEATURE_SSH").is_ok();

if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
let mut cfg = pkg_config::Config::new();
if let Ok(lib) = cfg.atleast_version("0.28.0").probe("libgit2") {
for include in &lib.include_paths {
println!("cargo:root={}", include.display());
}
return;
let mut cfg = pkg_config::Config::new();
if let Ok(lib) = cfg.atleast_version("1.0.0").probe("libgit2") {
for include in &lib.include_paths {
println!("cargo:root={}", include.display());
}
return;
}

if !Path::new("libgit2/.git").exists() {
Expand Down

0 comments on commit 0a529b5

Please sign in to comment.