-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New public API #20
Comments
Quick update here, and apologies for the delay, Ivan. First up, thanks for taking the time to explain the issue. If I understand, there are actually two issues here:
While I do wish to address both issues, I've been literally losing a bit of sleep over how to specifically deal with the latter. I'd been tossing around a few ideas, such as:
Either way, a breaking API change is imminent. If you can keep working off of your local fork that'd buy me some time to think this through. If you'd rather have me publish an interim version to crates.io, I can do that, too. Though the expectation should be that a loud, possibly disruptive API break is upcoming. |
@tim-weis hello! Thank you for response. I can wait, at the moment I copy some piece of code into my project. |
@tim-weis hello! Thank you for the great library! I want to explain my use case of this library.
I write tool set for analyze malware files. I parse doc (xls, ppt, ...) file using: https://github.com/mdsteele/rust-cfb. Then I need to get macros from file. I try to using your library. but I need new public API. I don't want to parse the same file twice and I cannot load file into memory because I work on large file stream.
In doc file, macros are not at the root of the cfb container.
I create PR: #19, where I add new API:
Vec<u8>
tofn open_project<R: Read + Seek>(reader: R)
- this is needed forCompoundFile
.fn open_project_with_path<P: AsRef<Path>, R: Read + Seek>(root: P, reader: R)
- find VBA project along the path different from the root onefn open_project_with_path_container<P: AsRef<Path>, R: Read + Seek>(root: P, mut container: CompoundFile<R>)
- like previous method, but I already parsed cfb containerThe text was updated successfully, but these errors were encountered: