Serial-ATA / lofty-rs

Audio metadata library
Apache License 2.0
179 stars 34 forks source link

Probe: Introduce `GlobalOptions` to handle allocations and resolvers #321

Closed Serial-ATA closed 6 months ago

Serial-ATA commented 6 months ago

This moves ParseOptions::{use_custom_resolvers, allocation_limit} to the new GlobalOptions struct. This makes it easier to check for certain options in places where ParseOptions may not be available.

GlobalOptions are not truly global, they only apply to the current thread.