tar-rs:Rust的Tar文件读写

时间:2021-05-13 01:43:35
【文件属性】:
文件名称:tar-rs:Rust的Tar文件读写
文件大小:58KB
文件格式:ZIP
更新时间:2021-05-13 01:43:35
Rust 塔尔 用于Rust的tar归档读/写库。 # Cargo.toml [ dependencies ] tar = " 0.4 " 阅读档案 extern crate tar; use std :: io :: prelude :: * ; use std :: fs :: File; use tar :: Archive; fn main () { let file = File :: open ( "foo.tar" ). unwrap (); let mut a = Archive :: new (file); for file in a. entries (). unwrap () { // Make sure there wasn't an I/O error let mut file = file. unwrap ();
【文件预览】:
tar-rs-master
----.gitignore(20B)
----src()
--------entry_type.rs(6KB)
--------error.rs(730B)
--------pax.rs(3KB)
--------builder.rs(19KB)
--------archive.rs(18KB)
--------entry.rs(29KB)
--------lib.rs(2KB)
--------header.rs(52KB)
----Cargo.toml(893B)
----.github()
--------workflows()
--------dependabot.yml(145B)
----examples()
--------raw_list.rs(2KB)
--------write.rs(285B)
--------extract_file.rs(685B)
--------list.rs(386B)
----LICENSE-MIT(1KB)
----README.md(2KB)
----tests()
--------all.rs(37KB)
--------header()
--------archives()
--------entry.rs(10KB)
----LICENSE-APACHE(11KB)

网友评论