Beginner's First GUI In Rust
Kent West - kent.west@{that mail that swore to do no evil}
I've been wanting to get my feet wet with GUI programming using Rust, and I finally found a simple enough tool to do so; it's found at Dioxus Labs.
I'm doing this on a Debian 12 GNU/Linux Box, with Cinnamon as my Desktop.
Install Rust
Install Rust, and make sure you can compile and run a simple "Hello, World" program.
Install some dependencies:
Then create a new project:
(The --bin
is optional; it's assumed if not given.)
Create the Program
Then edit the src/main.rs
file to the following:
Run the Program
And run the program to display a window with a "Hello, World!" message. Simple.
The Result