rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.65k stars 381 forks source link

Fix libgit2-sys rerun-if-changed on Windows #916

Closed ehuss closed 1 year ago

ehuss commented 1 year ago

This fixes it so that the libgit2-sys build script will re-run if any of the libgit2 source files changes. There was an early exit return that was preventing the code from running on Windows.

This also removes the built-in recursion support. Cargo was updated in Rust 1.50 to have this support built-in.