coding with rust

I have no idea what I’m doing. ๐Ÿ™ˆ This is my first try. ๐Ÿ˜ตโ€๐Ÿ’ซ

I TRUST IN RUST. ๐Ÿ™ ๐Ÿฆ€

Rust – is a systems programming language focused on safety, speed and concurrency.

Firstable I’ll install rust.

Then GTK.

rustc --version
cargo --version

Create a new Rust project:

cargo new gtk_crab_app
cd gtk_crab_app

Creating binary (application) `gtk_crab_app` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Add the necessary dependencies to your Cargo.toml file:

[dependencies]
...

Replace the contents of src/main.rs with the following code:

...

Build and Run the Application:

cargo build
cargo run
# cargo clean


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *