vipyrsec / dragonfly-client-rs

Dragonfly client written in Rust
https://docs.vipyrsec.com/dragonfly-client-rs/dragonfly_client_rs/
MIT License
4 stars 2 forks source link

Use `parking_lot`? #40

Closed Robin5605 closed 1 year ago

Robin5605 commented 1 year ago

I think Rust's parking_lot crate would be useful to enhance the stdlib's concurrency and synchronization primitives, since we are doing a lot of concurrency-related stuff in the client.

I don't believe parking_lot's Mutexes and RwLocks can be poisoned, so that already significantly cuts down on the many .unwrap()s we have lying around to "handle" poisoned locks