user15262459
user15262459

Reputation: 31

Rustup is not recognised but rustic —version works

48.0 (MSVC shell)

I can run rustc —version

But rustup gives me rustup is not recognised as an internal or external command

Completely new to Rust world And very poor knowledge of build tools currently

Can someone guide me as to what I should do I have limited access to software which can be installed in my machine

Note: cargo —version also works

Upvotes: 3

Views: 3161

Answers (2)

Fabián Montero
Fabián Montero

Reputation: 1794

Rustup is just a toolchain manager, used to install different versions of Rust. So my guess is that you have installed Rust but havent installed rustup, as they are separate things.

You probably need to install rustup separately on your system.

I would recommend that you use cargo to build rust code. It is included with most installations of Rust and it is the recommended and most common way of managing and building Rust projects.

Basic usage of cargo:

cargo new <project_name>

cd <project_name>

cargo build 

cargo run

Since you are a beginner, I strongly recommend that you read The Rust Book to get a decent start with the language.

Upvotes: 1

Maya
Maya

Reputation: 1537

I suspect you might have downloaded a standalone installer as opposed to rustup itself. It is possible to use Rust without rustup, but if you want to manage your toolchains with rustup, you'll want to uninstall Rust and run rustup-init.exe.

Upvotes: 0

Related Questions