#hyper #http-transport #hyper-http #libgit2 #git2 #back-end #register

git2-hyper

Backend for an HTTP transport in libgit2 powered by hyper. Intended to be used with the git2 crate

2 releases

0.1.1 Apr 12, 2022
0.1.0 Apr 12, 2022

#12 in #libgit2

MIT/Apache

23KB
219 lines

git2-hyper

workflow

hyper binding for libgit2 bindings for Rust

Rust version requirements

1.53.0

How to build

$ git clone https://github.com/henry40408/git2-hyper
$ cd git2-hyper
$ cargo build

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-hyper by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A crate for using hyper as a backend for HTTP(S) git requests with git2-rs.

This crate provides one public function, register, which will register a custom HTTP transport with hyper for any HTTP(S) requests made by libgit2. At this time the register function is unsafe for the same reasons that git2::transport::register is also unsafe.

NOTE: At this time this crate likely does not support a git push operation, only clones.

Dependencies

~13–26MB
~478K SLoC