Attaching ruis to your program is not very difficult. Basically one needs to push mouse, keyboard and window events to ruis, call update() and render() methods from main loop and implement method of posting an event to main event queue.
TODO: add the example to this repo
Refer to the example of using ruis with SDL2.