Page 1 of 1

Rust Language Tutorial

Posted: Mon Jan 26, 2015 1:59 am
by jussij
Here are the steps required to use the Rust compiler inside of Zeus.

Step 1:
Download and run the installed the Rust installer from the following page:

When you running the installed accept the default installation folder.

Also accept the installer offer to add that installation folder to the system PATH environment variable.

Step 2:
Start Zeus and use the Tools, DOS Command Line menu to run this command:

Code: Select all

rustc.exe --version
Running that command should result in output something like this:

Code: Select all

rustc 1.15.1 (021bd294c 2017-02-08)
If you do not see this output it means the previous installation step has not worked.

Step 3:
Inside Zeus and create a simple c:\temp\ file:

Code: Select all

fn main() {
    println!("Hello, world!");
Step 4:
Use the Compiler, Compile menu to compile and link that file.

Then use the Macros, Execute Test.exe menu to run the executable and you should see this result:

Code: Select all

Hello, world!
IMPORTANT NOTE: Because the Rust compiler uses the AcquireSRWLockExclusive Win32 API function found in the KERNEL32, it needs Windows Vista or better to run.