A comprehensive manual to install rust in windows WSL
To install Rust, use the following command:
curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs>
choose 2
Default host triple?
Default toolchain? 1.81.0 (because it is needed)
finish the setup with the default values.
Para usar cast
Instalar
curl -L https://foundry.paradigm.xyz | bash
after insalling make sure to add it to your PATH running the following command.
source ~/.bashrc
In your terminal, run:
cargo install --force cargo-stylus
Add WASM (WebAssembly) as a build target for the specific Rust toolchain you are using. The below example sets your default Rust toolchain to 1.81 as well as adding the WASM build target:
rustup default 1.80
rustup target add wasm32-unknown-unknown --toolchain 1.80