13 releases (8 breaking)

0.9.0 Aug 9, 2025
0.8.0 Jul 30, 2024
0.7.0 Oct 1, 2023
0.5.1 Jul 22, 2023
0.2.0 Feb 28, 2016

#55 in Hardware support

Download history 27862/week @ 2025-08-15 27345/week @ 2025-08-22 27218/week @ 2025-08-29 29745/week @ 2025-09-05 30249/week @ 2025-09-12 36255/week @ 2025-09-19 34093/week @ 2025-09-26 33293/week @ 2025-10-03 35467/week @ 2025-10-10 39353/week @ 2025-10-17 39391/week @ 2025-10-24 43122/week @ 2025-10-31 44737/week @ 2025-11-07 44541/week @ 2025-11-14 48823/week @ 2025-11-21 41100/week @ 2025-11-28

186,436 downloads per month
Used in 115 crates (32 directly)

MIT license

270KB
4K SLoC

xkbcommon-rs

xkbcommon-rs is a set of bindings and safe wrappers for libxkbcommon.

For use with wayland:

[dependencies]
xkbcommon = { version = "0.9", features = ["wayland"] }

For use with X11:

[dependencies]
xkbcommon = { version = "0.9", features = ["x11"] }

example

Living example for X11 here: https://github.com/rust-x-bindings/toy_xcb/blob/master/src/keyboard.rs

Dependencies

~800KB
~15K SLoC