1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
VS CodeThis is the best supported editor at the moment. The rust-analyzer plugin for VS Code is maintained in tree. You can install the latest release of the plugin from the marketplace. Note that the plugin may cause conflicts with the previous official Rust plugin. The latter is no longer maintained and should be uninstalled. The server binary is stored in the extension install directory, which
starts with
As an exception, on NixOS, the extension makes a copy of the server and
stores it under
Note that we only support the two most recent versions of VS Code. UpdatesThe extension will be updated automatically as new versions become available. It will ask your permission to download the matching language server version binary if needed. NightlyWe ship nightly releases for VS Code. To help us out by testing the newest code, you can enable pre-release versions in the Code extension page. Manual installationAlternatively, download a VSIX corresponding to your platform from the releases page. Install the extension with the If you are running an unsupported platform, you can install
Building From SourceBoth the server and the Code plugin can be installed from source: You’ll need Cargo, nodejs (matching a supported version of VS Code) and npm for this. Note that installing via If you’re not using Code, you can compile and install only the LSP server: Make sure that VS Code or VSCodium in FlatpakSetting up If you use a Flatpak SDK for Rust, it must be in your
If you want to use Flatpak in combination with
A C compiler should already be available via |