niri is based on smithay which is also used by COSMIC.
I used rust for my sleep daemon, but personally I think rust is a suboptimal language for efficiently writing wayland code.