You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Rust projects that need to target architectures other than the architecture of their machine, you typically install support for those targets with rustup. Similarly, if you need to use the nightly compiler you would install and manage that with rustup as well. With Flox you want a declarative way to manage the project's dependencies. One solution for this is to use a flake.
Using the fenix flake you can do both of these things. For the nightly toolchain you only need nightly-rust.flake = "github:nix-community/fenix#default.toolchain" instead of the packages in the rust-toolchain of the existing example environment. To support other targets you need to write your own flake. The packages output of your flake would look something like this (I think):
For Rust projects that need to target architectures other than the architecture of their machine, you typically install support for those targets with
rustup
. Similarly, if you need to use the nightly compiler you would install and manage that withrustup
as well. With Flox you want a declarative way to manage the project's dependencies. One solution for this is to use a flake.Using the fenix flake you can do both of these things. For the nightly toolchain you only need
nightly-rust.flake = "github:nix-community/fenix#default.toolchain"
instead of the packages in therust-toolchain
of the existing example environment. To support other targets you need to write your own flake. Thepackages
output of your flake would look something like this (I think):and then you would add that flake to your manifest.
The text was updated successfully, but these errors were encountered: