2 个版本
0.1.1 | 2022 年 4 月 12 日 |
---|---|
0.1.0 | 2022 年 4 月 12 日 |
#12 in #libgit2
23KB
219 行
git2-hyper
hyper 的绑定,用于 Rust 的 libgit2 绑定
Rust 版本要求
1.53.0
如何构建
$ git clone https://github.com/henry40408/git2-hyper
$ cd git2-hyper
$ cargo build
许可证
本项目受以下任一许可证的许可:
- Apache 许可证 2.0 版 (LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT 许可证 (LICENSE-MIT 或 https://open-source.org.cn/licenses/MIT)
由您选择。
贡献
除非您明确声明,否则根据 Apache-2.0 许可证定义的,您有意提交给 git2-hyper 的任何贡献都应如上双许可,没有任何额外的条款或条件。
lib.rs
:
一个 crate,用于使用 hyper 作为 git2-rs 的 HTTP(S) git 请求的后端。
此 crate 提供一个公共函数 register
,该函数将为 libgit2 发出的任何 HTTP(S) 请求注册一个自定义 HTTP 传输。目前,由于与 git2::transport::register
相同的原因,该 register
函数也是不安全的。
注意:目前此 crate 很可能不支持
git push
操作,仅支持克隆。
依赖项
~13–26MB
~478K SLoC