tutorial:toolchain_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:toolchain_setup [2020/10/15 13:03]
iridescence
tutorial:toolchain_setup [2021/11/04 08:28] (current)
shantaram Added information about per-project override and added Cargo.toml info.
Line 35: Line 35:
 ===== Rust ===== ===== Rust =====
  
-To install Rust on your computer, you'll need to head to the official Rust installer, [[https://rustup.rs/|Rustup]].+To install Rust on your computer, you'll need to head to the official Rust installer, ''[[https://rustup.rs/|rustup]]''.
 Follow the instructions and install Rust. If you're on Windows, you'll need [[https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16|Visual Studio C++ Build Tools]]. Follow the instructions and install Rust. If you're on Windows, you'll need [[https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16|Visual Studio C++ Build Tools]].
  
-After you've finished that, you'll need to hop into your favorite terminal (or refresh your terminal instance) and set your toolchain to nightly and add the Rust-SRC component. Then, we'll install Cargo-PSP.+After you've finished that, you'll need to hop into your favorite terminal (or refresh your terminal instance) and set your toolchain to nightly and add the ''rust-src'' component. Then, we'll install ''cargo-psp''.
 <code> <code>
 rustup default nightly rustup default nightly
Line 44: Line 44:
 cargo install cargo-psp cargo install cargo-psp
 </code> </code>
 +This will set your default Rust toolchain to be ''nightly''. You can also do a per-project override with the following commands:
 +<code>
 +cargo new my-psp-app
 +cd my-psp-app
 +rustup override set nightly
 +</code>
 +
 +Finally, add the ''[[https://lib.rs/crates/psp|psp]]'' crate to your ''Cargo.toml''.
  
 Now you've got a working PSP Toolchain in Rust! Now you've got a working PSP Toolchain in Rust!
  • tutorial/toolchain_setup.txt
  • Last modified: 2021/11/04 08:28
  • by shantaram