Skip to content

rustup no longer automatically installs the right toolchain #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bergkvist opened this issue Mar 5, 2025 · 2 comments
Closed

rustup no longer automatically installs the right toolchain #511

bergkvist opened this issue Mar 5, 2025 · 2 comments

Comments

@bergkvist
Copy link

See https://blog.rust-lang.org/2025/03/02/Rustup-1.28.0.html

Before this change, I could add a rust-toolchain.toml file to my Python-project, and setuptools-rust would automatically install the right toolchain before building.

Now, before building it is neccesary to run the following command manually (in the same folder as the rust-toolchain.toml file):

rustup toolchain install

It would be nice if there was a way to configure setuptools-rust with a flag to run this command before issuing cargo/rustc build commands (or to attempt to run it by default).

@bergkvist
Copy link
Author

It seems like rustup might actually revert this change (rust-lang/rustup#4211), so it might not be necessary to do anything here

@bergkvist
Copy link
Author

Closing now that rustup 1.28.1 has rolled back to the old behaviour: https://blog.rust-lang.org/2025/03/04/Rustup-1.28.1.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant