Rust Compiling Project

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Rust Compiling Project

Post by Chucky » Tue Jun 28, 2016 5:57 am

Hello.

I was wondering if you could help me compile a Rust Project that I found on GitHub. I've been trying so hard to find some way to compile it and add my features but it just won't work.
https://github.com/Thinkofname/steven/

If you can help me in any way, Please post and get in contact. You can also email me:
Haronity@gmail.com

I really need help as this will help me a lot.

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: Rust Compiling Project

Post by jussij » Tue Jun 28, 2016 6:24 am

At a minimal you first need to download an install Rust tools.

Some details of that can be found here: viewtopic.php?f=5&t=7438

It has been a while since I did this, but I think once you have done that all you need to do is use the Rust Cargo tool and it will download and build packages and that process should be fairly straight forward.

Cheers Juss

Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Re: Rust Compiling Project

Post by Chucky » Tue Jun 28, 2016 6:28 am

The project has multiple files and I can't open all of them in Zeus :l
Well, the folder at least.

EDIT:
I always get errors with Cargo. Is there anyway someone can compile the project so i know that it's possible, at least. Thanks so much for the quick responses and help.

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: Rust Compiling Project

Post by jussij » Tue Jun 28, 2016 8:13 am

I always get errors with Cargo.

If Cargo is not working then that suggests to me your Rust install is broken.

For Rust projects all Rust builds are done using Cargo and it should be as simple as opening a command prompt, moving to the folder that contains the projects Cargo manifest file and then running this command:

Code: Select all

cargo build
That should build the project and produce the executable.

Now if that works, then doing the same in Zeus is as simple as creating a Zeus workspace in that same location as the project and add that exact same command to the Zeus build options found Project section in the Workspace, Options menu dialog.

Then you could use the Zeus Workspace, Build menu to do that build.

But you won't be able to proceed without first having a working Cargo installation.

Cheers Jussi

Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Re: Rust Compiling Project

Post by Chucky » Wed Jun 29, 2016 5:19 am


jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: Rust Compiling Project

Post by jussij » Wed Jun 29, 2016 6:14 am

Since the image shows the compiler panicked that tells me one of two things.

1. Firstly, I would say you have found a bug in the Rust compiler (which you probably should report to the Rust developer forum).

2.The bug might be also be related to the source code and by that I mean the Rust code might have been developed for an older version of Rust compiler and now the newer compiler is struggling to understand the syntax. If that is the case you might be able to fix this by making a small code fix.

FYI it might also be worth point the image and a question to this forum: https://www.reddit.com/r/rust

Cheers Jussi

Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Re: Rust Compiling Project

Post by Chucky » Wed Jun 29, 2016 6:31 am

Thanks so much. I didn't know that the response will be so quick. +1 for that. I really love your responses and I am so happy that you've helped. I have taken your information and have made a Reddit "thread", hopefully I can finally fix this :D


Once again, thanks so much.
- Chucky [Hayden]

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: Rust Compiling Project

Post by jussij » Wed Jun 29, 2016 11:14 pm

I noticed your question posted on reddit: https://www.reddit.com/r/rust/comments/ ... iling_bug/

Based on the replies to that post, the advice suggests that updating the Rust compiler should fix the issue :)

Cheers Jussi

Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Re: Rust Compiling Project

Post by Chucky » Thu Jun 30, 2016 5:26 am

I really wished all of those replies helped and I've tried everything they've said and you've said. Always the same thing :|

https://gyazo.com/2943ec4e473a1d71620a9967ff0b0b47
https://gyazo.com/ba0048e1ff8a7bdb96f8bd09ce46f09d

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: Rust Compiling Project

Post by jussij » Thu Jun 30, 2016 6:49 am

The only thing I can suggest is:

1. Make sure the Rust install is actually installing the latest Rust compiler (maybe uninstall Rust first :?)

2. Make sure the build is actually using that new Rust compiler but I am not sure how you do that in Rust.

May try the which.exe tool :?

Cheers Jussi

Chucky
Posts: 6
Joined: Tue Jun 28, 2016 5:54 am

Re: Rust Compiling Project

Post by Chucky » Thu Jun 30, 2016 9:27 am

Mhm...well...all I can say is thank you so much for helping me and giving me something to try but sadly it's just not working. I've tried nearly all of the Rust versions, it took a while, nothing worked. I made sure it was all uninstalled during the process. This is really confusing, why do these things have to be so complicated.

Once again, thanks so much. Maybe i will be able to fix it without even knowing how, i'm losing hope anyway.

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 6 guests