xkbcommon-rs
xkbcommon-rs is a set of bindings and safe wrappers for libxkbcommon.
[]
= { = "0.3", = ["x11"] }
documentation
https://rtbo.github.io/xkbcommon-rs/xkbcommon
example
Living example here: https://github.com/rtbo/toy_xcb/blob/master/src/keyboard.rs