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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Rust Language Tutorial

Post 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: http://www.rust-lang.org/install.html

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\test.rs 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!

Setting up the Language Server
To setup the Rust language server follow the instructions found here: https://www.zeusedit.com/lsp/rust.html
Post Reply