Skip to content

Commit 30a2b27

Browse files
authored
Merge pull request #21735 from AnnsAnns/rust_builddocker
doc/guides/rust_tutorials: mention BUILD_IN_DOCKER more verbosely
2 parents 283a1e3 + 90072fb commit 30a2b27

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/guides/rust_tutorials/create_project.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,24 @@ Run the following command in your terminal:
151151
make info-rust
152152
```
153153

154+
:::tip
155+
If the above command fails due to missing dependencies,
156+
you can also run it in Docker by running:
157+
158+
```bash
159+
BUILD_IN_DOCKER=1 make info-rust
160+
```
161+
162+
You will have to include `BUILD_IN_DOCKER=1` for all subsequent make commands as well.
163+
164+
This ensures that we have all the necessary dependencies to build our program.
165+
For more information on building in Docker,
166+
see [Build in Docker](/build-system/build-in-docker/).
167+
168+
Do note that building in Docker will take quite a bit longer on the first run,
169+
as it needs to download a massive Docker image.
170+
:::
171+
154172
The output will look something like this:
155173

156174
```bash title="Output of make info-rust"

0 commit comments

Comments
 (0)