3 个不稳定版本
0.2.1 | 2020年8月7日 |
---|---|
0.2.0 | 2020年8月7日 |
0.1.0 | 2020年8月4日 |
#1564 在 开发工具
81KB
2K SLoC
rs-git-lib
Rust 本地 Git 库
使用方法
use rs_git_lib::Repo;
let repo = Repo::clone_from("https://github.com/lnds/rs-git-lib.git", Some("/tmp/rs-git".to_string())).unwrap();
let commits = repo.commits();
assert_eq!(commits[commits.len()].as_commit().unwrap().get_message(), "Initial commit")
注意
-
目前只支持 http 或 https
-
此项目始于 @cwbriones 的 Rgit 项目中的想法和代码: https://github.com/cwbriones/rgit
lib.rs
:
rs-git-lib
Git 的 Rust 本地库
依赖项
~9–14MB
~281K SLoC