File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
doc/develop/languages/rust Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ the rust command needed to install the appropriate target support:
25
25
26
26
.. _rustup : https://rustup.rs/
27
27
28
- .. code-block ::
28
+ .. code-block :: console
29
29
30
30
$ west build ...
31
31
...
32
32
error[E0463]: can't find crate for `core`
33
33
|
34
34
= note: the `thumbv7m-none-eabi` target may not be installed
35
- = help: consider downloading the target with `rustup target add thumb7m -none-eabi`
35
+ = help: consider downloading the target with `rustup target add thumbv7m -none-eabi`
36
36
37
37
In this case, the given ``rustup `` command will install the needed target support. The target
38
38
needed will depend on both the board selected, as well as certain configuration choices (such as
@@ -46,7 +46,7 @@ See :zephyr_file:`samples/rust` for examples of an application.
46
46
CMake files
47
47
-----------
48
48
49
- The application should contain a :file: `CMakeFiles .txt `, similar to the following:
49
+ The application should contain a :file: `CMakeLists .txt `, similar to the following:
50
50
51
51
.. code-block :: cmake
52
52
@@ -72,7 +72,7 @@ you use crates that support building with no-std.
72
72
Application
73
73
-----------
74
74
75
- The application source itself should live in file:`src/lib.rs `. A few things are needed. A minimal
75
+ The application source itself should live in : file: `src/lib.rs `. A few things are needed. A minimal
76
76
file would be:
77
77
78
78
.. code-block :: rust
@@ -128,7 +128,7 @@ For example:
128
128
#[cfg(CONFIG_SCHED_DUMB)]
129
129
one_declaration;
130
130
131
- #[cfg(not(CONFIG_SCHED_DUMB)]
131
+ #[cfg(not(CONFIG_SCHED_DUMB)) ]
132
132
other_declaration;
133
133
134
134
Other Kconfig settings
You can’t perform that action at this time.
0 commit comments