What rust does rustPlatform use?

I am using flakes. I build my rust package with nixpkgs-unstable.rustPlatform.buildRustPackage. I also want to make a devShell. I could use buildInputs = [ rustc cargo ], but I feel like these binaries would net be that same as what rustPlatform uses.

How do I achieve the same toolchain in both places?

buildRustPackage uses rustPlatform.rustc, which should be the same as toplevel rustc.

You can use inputsFrom = [ thePackage ] in mkShell to pull all inputs from a package.

1 Like

You are my hero, thx :crab: :heart: