| Crates.io | rs-git-lib |
| lib.rs | rs-git-lib |
| version | 0.2.1 |
| created_at | 2020-08-04 17:05:07.549004+00 |
| updated_at | 2020-08-07 01:30:47.388428+00 |
| description | A native rust git library |
| homepage | |
| repository | https://github.com/lnds/rs-git-lib |
| max_upload_size | |
| id | 272948 |
| size | 227,781 |
Rust Native Git Library
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")
only works with http or https for now
This work started from the ideas and code in Rgit project by @cwbriones: https://github.com/cwbriones/rgit