Skip to content

No Rust installation detected (rustup-init.exe, VisualRust 0.1.2, VS 2015) #263

Open
@Byron-Miles

Description

@Byron-Miles

This is similar to previous issues and seems to be fixed in the lastest (but not released as of 3 Jan 2017) code, but considering it took me over 2 hours and some digging through old (VisualRust 0.1.2) code to work out a straight answer I thought I might save someone time and post the solution here:

Basically you need to point VisualRust at your install (.cargo) directory using a registry key:

  1. Run regedit.exe
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE
  3. Create a 'Mozilla Foundation' key (assuming it doesn't exist) under the 'SOFTWARE' key
  4. Create a 'Rust' key under the 'Mozilla Foundation' key (note: technically it only needs to start with 'rust', so you can use something like 'Rust Stable' if you like)
  5. Create another key under the 'Rust' key; pretty sure the name doesn't matter, so your installed rustc.exe version is a good choice (e.g. '1.14.0'). Your full registry path should look something like: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Foundation\Rust\1.14.0
  6. Create an 'InstallDir' String Value under that key with the value being the install path (e.g. C:\Users\User\.cargo\ )

Good luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions