I want to use the Rust "nightly" build to work with Arrow and Datafusion. According to this post and the rustup book I should be able to put a rust-toolchain file in the home directory of the project containing just the word "nightly" and that should make it the default build for that project. However, this isn't working.
Any suggestions of what I am missing?
When I check the default, I see that it is using the "stable" build.
(base) Apples-MBP:data_fusion_tutorial Daniel$ rustup default
stable-x86_64-apple-darwin (default)
Here is what my project directory looks like:
(base) Apples-MBP:data_fusion_tutorial Daniel$ ls -a
. .. .git .gitignore Cargo.lock Cargo.toml rust-toolchain src target
If I run
rustup override set nightly
then the project builds ok, but the default is still "stable".
rustup defaultprints the global default toolchain. You can runrustup showto get the active toolchain for the current directory:Setting a directory override will modify the active toolchain:
Notice how stable is still the default toolchain, but the active toolchain changed to nightly. To change the global default, you can run the
defaultcommand: