3 ms·
I think the author is confusing something here > The reference implementation of the protocol (Weston and it's associated libraries) is written in C. That mean
by pantalaimon 8y ago
I think the author is confusing something here
> The reference implementation of the protocol (Weston and it's associated libraries) is written in C. That means you could wrap the C code with Rust, which several people have done already [1] However, I get the impression that the results are not very 'rustic', meaning it's like you are coding C from Rust, instead of writing real Rust code.
> To address the problems of dealing with the existing native Wayland implementations, a couple of the Rust Wayland developers have joined together to build a new Wayland implementation in pure Rust called wlroots [2]
[1] https://github.com/Smithay/wayland-rs https://github.com/Smithay/wayland-rs
[2] https://github.com/swaywm/wlroots https://github.com/swaywm/wlroots
wlroots is written in C whereas wayland-rs - a Rust implementation of the wayland protocol (client and server) is written in - Rust.
I'm not familiar with either project, but this just stood out immediately when looking at the Github pages.
- Sylos 8y agoThere's also wlroots-rs, which provides safe Rust bindings for wlroots: https://github.com/swaywm/wlroots-rs https://github.com/swaywm/wlroots-rs But yeah, you would still need the C toolchain with this.
- rhn_mk1 8y agoPerhaps the author meant Smithay, which, while it still depends on some C, is almost entirely Rust: https://github.com/Smithay/smithay https://github.com/Smithay/smithay