2 releases
0.0.2 | Sep 9, 2023 |
---|---|
0.0.1 | Sep 7, 2023 |
#301 in No standard library
Used in viewy
10KB
203 lines
Modify according to git-down, Supplemented test cases, and more convenient to be called.
lets you download one or multiple directories from a Git repository.
Usage
cargo add download_git
Example
use download_git;
download_git::download("https://github.com/twbs/bootstrap.git:main", download_git::DownloadOptions {
target_files: Some(vec!["dist".to_string(), "README.md".to_string()]),
dest_path: String::from(TEST_FOLDER)
}).unwrap();
License
MIT
Dependencies
~4–13MB
~169K SLoC