Rust Language Tutorial

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
Site Admin
Posts: 2430
Joined: Fri Aug 13, 2004 5:10 pm

Rust Language Tutorial

Post by jussij » Mon Jan 26, 2015 1:59 am

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.

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 2 guests