1Password / sys-locale

A small and lightweight Rust library to obtain the active locale on the system.
Apache License 2.0
81 stars 15 forks source link

Replace windows-sys with windows-bindgen #26

Closed complexspaces closed 1 year ago

complexspaces commented 1 year ago

As of today, sys-locale only uses 3 definitions from Windows, and that is unlikely to change a lot given the crate's current narrow scoping. Given that, the windows-sys dependency isn't worthwhile to have anymore especially with its version churn.

Instead, we can adopt Microsoft's official bindings generator, riddle/windows-bindgen, to get the few APIs required.