Rust: Difference between revisions
imported>Samuela No edit summary |
imported>Srid expand |
||
Line 1: | Line 1: | ||
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. | 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 == | == Installing via nixpkgs == | ||
Line 45: | Line 51: | ||
== Unofficial overlays == | == Unofficial overlays == | ||
# https://github.com/oxalica/rust-overlay | |||
# https://github.com/mozilla/nixpkgs-mozilla | |||
== Rust Nightlies == | == Rust Nightlies == | ||
# Use one of the overlays above, | |||
# Or, use rustup | |||
== Developing Rust projects using Nix == | |||
# https://github.com/nmattia/naersk (via: https://www.reddit.com/r/rust/comments/mmbfnj/nixifying_a_rust_project/ ) | |||
== Neovim Completion == | == Neovim Completion == |