Can I enable nightly toolchain only for profile.dev?

I've just enabled the cranelift backend in my project. It requires the nightly toolchain, but since I don't use cranelift in the release profile, I want to enable nightly only when using the dev profile. Is this possible?

No. Once cargo looks at your profile, it's already been decided which toolchain is in use. Changing it in the profile is too late.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.