OLE
A set of OLE parsers and tools to deal with OLE files.
Requirements
- Rust 1.56+ (edition: 2021)
Example Usage
- add dependency (default feature is to use async)
[dependencies]
ole = { git = "https://github.com/marirs/ole-rs.git", branch = "master" }
- example code
use ole::OleFile;
fn main() {
let file = "data/oledoc1.doc_";
let res = OleFile::from_file(file).await.expect("file not found");
println!("{:#?}", &res);
println!("entries: {:#?}", res.list_streams());
}
- dependency with blocking
[dependencies]
ole = { git = "https://github.com/marirs/ole-rs.git", branch = "master", default-features = false, features = ["blocking"] }
- example code
use ole::OleFile;
fn main() {
let file = "data/oledoc1.doc_";
let res = OleFile::from_file_blocking(file).expect("file not found");
println!("{:#?}", &res);
println!("entries: {:#?}", res.list_streams());
}
- Running the Example Code
cargo r --example ole_cli --features="blocking" data/oledoc1.doc_
License: MIT or Apache