You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added reasons for downloading rust-src and link to a chapter on custom-targets
* Update src/installation/riscv.md
committed the suggestion made by @SergioGasquez
Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
---------
Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
The above command downloads the rust source code. `rust-src` contains things like the std-lib, core-lib and build-config files.
12
+
Downloading the `rust-src` is important because of two reasons :
13
+
- **Determinism** - You get the chance to inspect the internals of the core and std library. If you are building software that needs to be determinate, you may need to inspect the libraries that you are using.
14
+
- **Building custom targets** - The `rustc` uses the `rust-src` to create the components of a new custom-target. If you are targeting a triple-target that is not yet supported by rust, it becomes essential to download the `rust-src`.
15
+
16
+
For more info on custom targets, read this [Chapter][embedonomicon-creating-a-custom-target] from the [Embedonomicon][embedonomicon-official-book].
17
+
10
18
2. Set the target:
11
19
- For `no_std` (bare-metal) applications, run:
12
20
@@ -40,3 +48,5 @@ Now you should be able to build and run projects on Espressif's `RISC-V` chips.
0 commit comments