AltF02 / x11-rs

Rust bindings for X11 libraries
https://docs.rs/x11
MIT License
207 stars 66 forks source link

maint: Avoid loading shared libraries more than once #165

Closed notgull closed 1 year ago

notgull commented 1 year ago

This PR makes it so the X11 linked libraries are only loaded once. This PR also replaces lazy_static with the once_cell crate, since lazy_static has largely been replaced with once_cell within the Rust ecosystem.

notgull commented 1 year ago

@AltF02 Any chance you could take another look at this? This is a soundness issue as much as a convenience issue, since it gets rid of the bespoke unsafe code for shared library initialization.

AltF02 commented 1 year ago

Hi, excuses. I was very busy the past weeks

AltF02 commented 1 year ago

Released under v2.21.0