tar-rs —在Rust中读/写tar档案-Rust开发

时间:2021-05-27 18:43:30
【文件属性】:
文件名称:tar-rs —在Rust中读/写tar档案-Rust开发
文件大小:59KB
文件格式:ZIP
更新时间:2021-05-27 18:43:30
Rust Compression 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
----LICENSE-MIT(1KB)
----LICENSE-APACHE(11KB)
----.github()
--------dependabot.yml(145B)
--------workflows()
----tests()
--------all.rs(38KB)
--------archives()
--------entry.rs(10KB)
--------header()
----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)

网友评论