tubbadu@lemmy.one to Asklemmy@lemmy.ml · 1 year agoWhat OS do you use on your pc and why?message-squaremessage-square548fedilinkarrow-up1196arrow-down13
arrow-up1193arrow-down1message-squareWhat OS do you use on your pc and why?tubbadu@lemmy.one to Asklemmy@lemmy.ml · 1 year agomessage-square548fedilink
minus-squareknoff@lemmy.mllinkfedilinkarrow-up1·1 year agoHow does your rust env setup look like? I’ve recently setup a full flake based dev-env, that uses fenix. It works great, but I’m interested in hearing a professional opinion
minus-squarepimeys@beehaw.orglinkfedilinkarrow-up2·1 year agoWhen I worked for Prisma, you can check our rust setup from the public flake: https://github.com/prisma/prisma-engines/blob/main/flake.nix CD to the project and nix-direnv loads the flake. Get to work. Now when I’m working in Grafbase, our flake is a bit different: https://github.com/grafbase/grafbase/blob/main/flake.nix Instead of the Rust overlay, we use rustup and rust-toolchain.toml. This makes it easier to enforce the same Rust version for nix and non-nix users. Both ways work really well. The deal is to define the rust env per project instead of defining it globally. Use direnv to make it working seamlessly.
How does your rust env setup look like? I’ve recently setup a full flake based dev-env, that uses fenix. It works great, but I’m interested in hearing a professional opinion
When I worked for Prisma, you can check our rust setup from the public flake:
https://github.com/prisma/prisma-engines/blob/main/flake.nix
CD to the project and nix-direnv loads the flake. Get to work.
Now when I’m working in Grafbase, our flake is a bit different:
https://github.com/grafbase/grafbase/blob/main/flake.nix
Instead of the Rust overlay, we use rustup and rust-toolchain.toml. This makes it easier to enforce the same Rust version for nix and non-nix users.
Both ways work really well. The deal is to define the rust env per project instead of defining it globally. Use direnv to make it working seamlessly.