DEV Community

Discussion on: Which Rust crate to use as GUI framework right now (Jan 2021)?

Collapse
 
faraazahmad profile image
Syed Faraaz Ahmad

I've had this problem myself with Rust several times. It all stems from the issue that you need to create safe Rust bindings for each library you want to use or else there's no point in using Rust.

This is why I've been recently exploring the Zig programming language. You can simply include header files in it and use them directly. It's not 1.0 yet but it looks extremely promising and is stable enough for side projects. Some people have already created OS kernels and other graphics/GUI stuff with it.

I suggest you give it a shot.

Collapse
 
davidedelpapa profile image
Davide Del Papa

Thank you Syed. I will try Zig (I try a lot of different languages). But the point for me is to try and make GUI work in Rust... Maybe the answer is that there's no answer, and then we know there is something very important missing in Rust, who knows?