Skip to content

Commit 588d7c0

Browse files
committed
Updated Rust install
1 parent 5b0cf95 commit 588d7c0

File tree

2 files changed

+41
-16
lines changed

2 files changed

+41
-16
lines changed

README.md

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ _(Rust on Windows is needed to support the Rust RLS extension for Visual Studio
9898

9999
1. Open the Windows Command Prompt (not Windows Ubuntu). Enter into the command prompt:
100100
```
101-
c:
102-
cd \stm32bluepill-mynewt-sensor
103101
rustup update
104102
rustc -V
105103
```
@@ -116,15 +114,25 @@ _(Rust on Windows is needed to support the Rust RLS extension for Visual Studio
116114
rustup component add rls rust-analysis rust-src
117115
```
118116
119-
If you see an error like `error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`, enter these commands to select an older working build of RLS (2019-05-22)...
117+
1. If you see an error like [`error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`](https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly)...
120118
121-
```
119+
We will need to install an older working build of Rust Language Server (RLS), I recommend the `2019-05-22` build. Follow these steps:
120+
121+
Ignore the error and continue to the next step of this installation guide.
122+
123+
After completing the steps for _"Install Apache Mynewt"_, enter these commands into the Windows Command Prompt (not Windows Ubuntu)...
124+
125+
```cmd
126+
c:
127+
cd \stm32bluepill-mynewt-sensor
122128
rustup override set nightly-2019-05-22
123129
rustup target add thumbv7m-none-eabi
124130
rustup component add rls rust-analysis rust-src --toolchain nightly-2019-05-22
125131
```
126132
127-
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder. To find the last successful build of RLS:
133+
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder that was created in the steps for _"Install Apache Mynewt"_.
134+
135+
To find the last successful build of RLS:
128136
https://rust-lang.github.io/rustup-components-history/
129137
130138
# Install Rust on Windows Subsystem for Linux (Windows)
@@ -141,7 +149,6 @@ _(Rust on Windows Subsystem for Linux is needed for building Rust and Mynewt pro
141149
142150
1. Enter into the Windows Ubuntu command prompt (not Windows Command Prompt):
143151
```
144-
cd /mnt/c/stm32bluepill-mynewt-sensor
145152
rustup update
146153
rustc -V
147154
```
@@ -158,23 +165,32 @@ _(Rust on Windows Subsystem for Linux is needed for building Rust and Mynewt pro
158165
rustup component add rls rust-analysis rust-src
159166
```
160167
161-
If you see an error like `error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`, enter these commands to select an older working build of RLS (2019-05-22)...
168+
1. If you see an error like [`error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`](https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly)...
162169
163-
```
170+
We will need to install an older working build of Rust Language Server (RLS), I recommend the `2019-05-22` build. Follow these steps:
171+
172+
Ignore the error and continue to the next step of this installation guide.
173+
174+
After completing the steps for _"Install Apache Mynewt"_, enter these commands into the Windows Ubuntu command prompt (not Windows Command Prompt)...
175+
176+
```bash
177+
cd /mnt/c/stm32bluepill-mynewt-sensor
164178
rustup override set nightly-2019-05-22
165179
rustup target add thumbv7m-none-eabi
166180
rustup component add rls rust-analysis rust-src --toolchain nightly-2019-05-22
167181
```
168182
169-
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder.
183+
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder that was created in the steps for _"Install Apache Mynewt"_.
184+
185+
To find the last successful build of RLS:
186+
https://rust-lang.github.io/rustup-components-history/
170187
171188
# Install Rust (macOS and Ubuntu)
172189
173190
1. Install `rustup` according to the instructions at https://rustup.rs
174191
175192
1. Enter into the command prompt:
176-
```
177-
cd $HOME/stm32bluepill-mynewt-sensor
193+
```bash
178194
rustup update
179195
rustc -V
180196
```
@@ -186,20 +202,29 @@ _(Rust on Windows Subsystem for Linux is needed for building Rust and Mynewt pro
186202
```
187203
188204
1. Enter into the command prompt:
189-
```
205+
```bash
190206
rustup target add thumbv7m-none-eabi
191207
rustup component add rls rust-analysis rust-src
192208
```
193209
194-
If you see an error like `error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`, enter these commands to select an older working build of RLS (2019-05-22)...
210+
1. If you see an error like [`error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download for channel 'nightly'`](https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly)...
195211
196-
```
212+
We will need to install an older working build of Rust Language Server (RLS), I recommend the `2019-05-22` build. Follow these steps:
213+
214+
Ignore the error and continue to the next step of this installation guide.
215+
216+
After completing the steps for _"Install Apache Mynewt"_, enter these commands into the command prompt...
217+
218+
```bash
219+
cd $HOME/stm32bluepill-mynewt-sensor
197220
rustup override set nightly-2019-05-22
198221
rustup target add thumbv7m-none-eabi
199222
rustup component add rls rust-analysis rust-src --toolchain nightly-2019-05-22
200223
```
201224
202-
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder. To find the last successful build of RLS:
225+
The above commands should be executed in the `stm32bluepill-mynewt-sensor` folder that was created in the steps for _"Install Apache Mynewt"_.
226+
227+
To find the last successful build of RLS:
203228
https://rust-lang.github.io/rustup-components-history/
204229
205230
# Install Apache Mynewt (Windows, macOS and Ubuntu)

0 commit comments

Comments
 (0)