I think it would be a good addition to xkbcommon-rs. The toy-xcb is really useful, but I always like cross-referencing code with the original library to how it looks with library bindings in another language.
I could work on this (at least the X11 example, dunno about the evdev and wayland ones), if you (@rtbo) think it's a good idea.
I saw that rust-xcb has an examples/ directory, but xkbcommon-rs does not. However, you do have a toy-xcb repository that is really useful, however, I couldn't find the
quick start
libxkbcommon example (https://github.com/xkbcommon/libxkbcommon/blob/master/doc/quick-guide.md) and the x11/xcb version: https://github.com/xkbcommon/libxkbcommon/blob/master/test/interactive-x11.c#L24I think it would be a good addition to xkbcommon-rs. The toy-xcb is really useful, but I always like cross-referencing code with the original library to how it looks with library bindings in another language.
I could work on this (at least the X11 example, dunno about the evdev and wayland ones), if you (@rtbo) think it's a good idea.