Rust Foo

Hello, world!

I have written my first program in Rust, of course it is "Hello, World!"

fn main() {
	println!("Hello, world!");
}

My interpretation of what I have done here is I have written it inside a function main, as to which you pass parameters I presume in the brackets. Then I print (line) the content on the next line, again in seperate brackets, this time its printing the data type of string in the brackets "Hello,World!" overall.

To compile that I do the following:

rustc main.rs

then to run

./main

This then prints in the terminal after executing the program:

Hello, World!

Also one other thing to note is that at the end of println! the exclamation mark indicates this is a macro, but I plan to look more into them later.

Hopefully learning rust, I aim to write my own voxel engine for a game using this language. I plan to write some blog posts about this also. I plan for the game engine to be called Voxel Nexus, it will be a voxel based game, but focusing around interpretation and inputting / outputting of information smoothly, kind of a memory palace dynamic, however I may pivot from that idea as I go onwards with it. I plan to utilise wgpu I think possibly.

Title: Hello, world!

Author: Jamie Cropley

Date published: 12/05/2025

URL: https://www.rust.foo/blog/helloworld/

Accessed on: 17/05/2025

Website: Rust Foo