| 
论坛元老  
 威望94 贡献138 热心值3 金币18536 注册时间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(
 
 | 
 |