From 7380d822564725e9eabaad278e09249ff12f3d5d Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Mon, 12 Aug 2024 11:35:14 +0200 Subject: [PATCH] docs: Add stable option --- src/installation/riscv.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/installation/riscv.md b/src/installation/riscv.md index a46a0c7..99afa57 100644 --- a/src/installation/riscv.md +++ b/src/installation/riscv.md @@ -2,8 +2,16 @@ To build Rust applications for the Espressif chips based on `RISC-V` architecture, do the following: -1. Install the [`nightly`][rustup-book-channel-nightly] toolchain with the `rust-src` [component][rustup-book-components]: - +1. Install the proper toolchain with the `rust-src` [component][rustup-book-components]: + - For `no_std` (bare-metal) applications, you can use both `stable` or [`nightly`][rustup-book-channel-nightly]: + ```shell + rustup toolchain install stable --component rust-src + ``` + or + ```shell + rustup toolchain install nightly --component rust-src + ``` + - For `std` applications, you need to use `nightly`: ```shell rustup toolchain install nightly --component rust-src ```