Hi,
I am new to Rust.
I try to start and doesn't succed at all after 4 hours : Windows10 environment.
My background is java programming with Netbean, It was easy to start 20 years ago... I just had to install NetBeans and Java Bundle and it worked.
With Rust I do not know how to do it : no such simple way
With Netbeans : no plugin for rust ready to install
With Visual studio Code : I do not know which version of C install, I didn't find any screen shoot of the installation
With Eclipse : it seems ther is a Eclipse for Rust, but when you have install eclipse it didn't install Rust at all.
The rustup-init.exe : it ask to install C but I do not know what to install
Do you know if there is a real step by step with screen shot or autoinstall exe ?
If your on windows you need to install the MSVC build tools you can find that when you install visual studio community edition
For Visual Studio, make sure to check the "C++ tools" and "Windows 10 SDK" option. No additional software installation is necessary for basic use of the GNU build.
I also recommend using VSCode instead of eclipse, it has much better support, especially with the rust-analyzer plugin.
When installing Visual Studio, did you install the build tools? If so you should be able to install rustup. If you have already run rustup-init.exe successfully, you should be able to access rustup on the commandline.
# will tell you the version, just to make sure it was indeed installed
rustup --version
# will install the latest stable version of Rust
rustup install stable
You can then use cargo to create, build, and test projects on the commandline, and other tools like VSCode should be able to run Rust code with the right plugins/addons.
Looks like you've got Rust installed. Note that rustup doesn't install Rust into visual studio, it just uses some tools from visual sudio's installation to install Rust.
You can create a new project using
cargo new my_new_project
cd my_new_project
then use the following commands to...
cargo run # build and run project
cargo build # build project
cargo test # test project
You can see the full list of commands with
cargo help
I recommend reading the book to get acquainted with Rust and cargo
Ok, I think that could be cleared up a bit in the documentation. If you have the time to, can you submit an issue about it either on the main Rust repo, or the one for the Rust book?
Currently, the best IDE support is definitely either the JetBrains Rust plugin in one of their IDEs, or the rust-analyzer setup in VSCode. I think both of those will allow you to create projects through the UI, once they're set up right... but I've found getting that right to be tricky on windows. However, cargo is excellent, and very easy to get started with. I use it for project creation and check/build/test. I use the IDE for syntax highlighting and code completion.
There was once, a long while ago, an alright plugin for VS proper, but it was abandoned years ago, and nobody has taken the time to try writing a new one. VS would be a very powerful addition, but there's a lot to be done to get it 'right'.