Rust: Difference between revisions
imported>Konfou m Capitalization |
imported>Samuela No edit summary |
||
Line 1: | Line 1: | ||
This article is about the [https://www.rust-lang.org Rust programming language]. | This article is about the [https://www.rust-lang.org Rust programming language]. There are 3 methods to use the rust compiler and toolchain in Nix/NixOS: via nixpkgs, via rustup, or with unofficial overlays on nixpkgs. Installing via nixpkgs is the nix-iest way to use rust, but there are valid reasons to use any approach. | ||
== Installing via nixpkgs == | |||
The <code>cargo</code> and <code>rustc</code> derivations provide the rust toolchain in nixpkgs. | |||
=== VSCode integration === | |||
== Installation via rustup == | |||
The <code>rustup</code> tool is maintained by the rust community and offers and interface to install and switch between rust toolchains. In this scenario, <code>rustup</code> handles the "package management" of rust toolchains and places them in <code>$PATH</code>. | |||
== Unofficial overlays == | |||
== Rust Nightlies == | == Rust Nightlies == |