A Rust library to extract files from MIME type files and returns you a hashmap which will contain filename and it corresponding file content as bytes.
use std::collections::HashMap;
use mail_extractor;
fn get_files(file_stream: Vec<u8>) -> HashMap<String, Vec<u8>> {
let extracted_file: HashMap<String, Vec<u8>> = mail_extractor::rewrite(file_stream);
extracted_file
}
[dependencies]
mail_extractor = "0.1.3"