论坛元老
 
- 威望
- 84
- 贡献
- 128
- 热心值
- 3
- 金币
- 18123
- 注册时间
- 2020-8-31
|
生锈的.DS_Store解析器获取库!
在您的Cargo.toml文件中添加类似的内容:[dependencies] ds_store =“ 0.2”用法extern crate ds_store生锈的.DS_Store解析器获取库!
在您的Cargo.toml文件中添加类似的内容:[dependencies] ds_store =“ 0.2”用法extern crate ds_store;
使用std :: collections :: HashMap;
使用std :: {io :: Read,fs :: File};
使用ds_store :: {DsStore,RecordValue};
fn main(){让args:Vec
= std :: env :: args()。collect();
如果args.len()!= 2 {println!(“用法不正确!`./binary_path /path/to/.DS_Store”);
返回;
} let mut file = File :: open(&args [1])。expect(
|
|