没有合适的资源?快使用搜索试试~ 我知道了~
tar-rs —在Rust中读/写tar档案-Rust开发
共39个文件
tar:16个
rs:15个
yml:2个
需积分: 9 0 下载量 112 浏览量
2021-05-27
18:43:30
上传
评论
收藏 59KB ZIP 举报
温馨提示
tar-rs文档Rust的tar归档读/写库。 #Cargo.toml [dependencies] tar =“ 0.4”读取存档外部板条tar; 使用tar-rs文档Rust的tar归档读/写库。 #Cargo.toml [dependencies] tar =“ 0.4”读取存档外部板条tar; 使用std :: io :: prelude :: *; 使用std :: fs :: File; 使用tar :: Archive; fn main(){让文件= File :: open(“ foo.tar”)。unwrap(); 让mut a = Archive :: new(file); 对于a.entries()。unwrap()中的文件{//确保没有I / O错误,让mut file = file.unwrap(); //检查有关文件println!(“ {:
资源推荐
资源详情
资源评论
收起资源包目录
tar-rs-master.zip (39个子文件)
tar-rs-master
LICENSE-MIT 1KB
LICENSE-APACHE 11KB
.github
dependabot.yml 145B
workflows
main.yml 2KB
tests
all.rs 38KB
archives
pax_size.tar 10KB
link.tar 10KB
reading_files.tar 10KB
empty_filename.tar 512B
sparse-n.sh 185B
directory.tar 10KB
7z_long_path.tar 4KB
xattrs.tar 10KB
simple_missing_last_header.tar 10KB
duplicate_dirs.tar 2KB
spaces.tar 2KB
sparse.tar 10KB
simple.tar 10KB
pax.tar 10KB
pax2.tar 10KB
sparse-1.tar 10KB
file_times.tar 2KB
entry.rs 10KB
header
mod.rs 8KB
src
error.rs 730B
header.rs 52KB
entry_type.rs 6KB
pax.rs 3KB
entry.rs 29KB
builder.rs 19KB
archive.rs 18KB
lib.rs 2KB
Cargo.toml 893B
examples
list.rs 386B
raw_list.rs 2KB
write.rs 285B
extract_file.rs 685B
.gitignore 20B
README.md 2KB
共 39 条
- 1
资源评论
KingstonChang
- 粉丝: 42
- 资源: 4658
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功