Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 [2] 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.



There's also wlroots-rs, which provides safe Rust bindings for wlroots: https://github.com/swaywm/wlroots-rs

But yeah, you would still need the C toolchain with this.


Perhaps the author meant Smithay, which, while it still depends on some C, is almost entirely Rust:

https://github.com/Smithay/smithay




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: