getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
384 stars 69 forks source link

Allow `PDB` to impl `Send`. #148

Open afranchuk opened 1 year ago

afranchuk commented 1 year ago

This allows PDB to be used across await points in async blocks. It also enables Sync access by e.g. wrapping with a Mutex.

This results in just one API-breaking change, where the Source::view trait method must now return a boxed trait object which is Send + Sync. If this breakage is unacceptable, maybe these changes could be behind a feature?

mstange commented 1 year ago

@jan-auer Could you take a look at this? It's needed for https://github.com/mstange/pdb-addr2line/pull/63

afranchuk commented 11 months ago

Bump @jan-auer, any chance of this getting in?