lofty-rs icon indicating copy to clipboard operation
lofty-rs copied to clipboard

ParseOptions: Add `read_tags`

Open Serial-ATA opened this issue 9 months ago • 0 comments

Summary

Unexpectedly, many projects pull in Lofty solely for its property reading. Each time it is used for this purpose, however, all of the tags are still being parsed unnecessarily.

Just as one can skip property reading with ParseOptions::read_properties(false), it may be worth adding ParseOptions::read_tags().

API design

impl ParseOptions {
    pub fn read_tags(&mut self, read_tags: bool) -> Self;
}

Serial-ATA avatar Sep 12 '23 21:09 Serial-ATA