#下载 #git仓库 #git #目录 #多个 #git下载

无std download_git

从Git仓库下载一个或多个目录

2个版本

0.0.2 2023年9月9日
0.0.1 2023年9月7日

#244 in 无标准库

MIT 许可证

10KB
203

根据 git-down 进行修改,补充测试用例,并使其调用更加方便。

允许您从Git仓库下载一个或多个目录。

用法

cargo add download_git

示例

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();

许可证

MIT

依赖

~4–14MB
~164K SLoC