Update lang/rust to version 1.41.0
[dports.git] / lang / rust / files / libgit2 / patch-vendor_libgit2-sys_lib.rs
1 Revert to libgit2 0.28 API per https://github.com/rust-lang/git2-rs/issues/458
2
3 --- vendor/libgit2-sys/lib.rs.orig      2019-11-04 17:34:46 UTC
4 +++ vendor/libgit2-sys/lib.rs
5 @@ -331,7 +331,6 @@ pub struct git_remote_callbacks {
6      pub push_negotiation: Option<git_push_negotiation>,
7      pub transport: Option<git_transport_cb>,
8      pub payload: *mut c_void,
9 -    pub resolve_url: Option<git_url_resolve_cb>,
10  }
11  
12  #[repr(C)]
13 @@ -385,8 +384,6 @@ pub type git_push_negotiation =
14  
15  pub type git_push_update_reference_cb =
16      extern "C" fn(*const c_char, *const c_char, *mut c_void) -> c_int;
17 -pub type git_url_resolve_cb =
18 -    extern "C" fn(*mut git_buf, *const c_char, c_int, *mut c_void) -> c_int;
19  
20  #[repr(C)]
21  pub struct git_push_update {
22 @@ -2280,7 +2277,7 @@ extern "C" {
23          source: *const git_tree,
24      ) -> c_int;
25      pub fn git_treebuilder_clear(bld: *mut git_treebuilder);
26 -    pub fn git_treebuilder_entrycount(bld: *mut git_treebuilder) -> size_t;
27 +    pub fn git_treebuilder_entrycount(bld: *mut git_treebuilder) -> c_uint;
28      pub fn git_treebuilder_free(bld: *mut git_treebuilder);
29      pub fn git_treebuilder_get(
30          bld: *mut git_treebuilder,