Skip to content

Conversation

CharlesChiuGit
Copy link
Collaborator

Should we include rustup installation in our installation scripts?
Besides rustfmt, sniprun also needs cargo to compile, so I think it might be acceptable to add it.
cc @Jint-lzxy @ClSlaid @volpan

@Jint-lzxy
Copy link
Collaborator

Sure! But how can we ensure proper installation (of rustup) on non-Windows platforms?

@ayamir
Copy link
Owner

ayamir commented Jul 9, 2023

Sure! But how can we ensure proper installation (of rustup) on non-Windows platforms?

IMO the most direct way is adding rustup to wiki/Prerequisites.

EDIT: for rust users

@CharlesChiuGit
Copy link
Collaborator Author

Sure! But how can we ensure proper installation (of rustup) on non-Windows platforms?

I think we can just check if cargo and rustc is installed?

@CharlesChiuGit
Copy link
Collaborator Author

IMO the most direct way is adding rustup to wiki/Prerequisites.

EDIT: for rust users

OK, I had added it in the prerequisites.

@CharlesChiuGit CharlesChiuGit marked this pull request as ready for review July 10, 2023 05:22
@CharlesChiuGit CharlesChiuGit changed the title migrate: install rustfmt from rustup (#815) migrate: install rustfmt from rustup (#842) Jul 10, 2023
@ayamir
Copy link
Owner

ayamir commented Jul 10, 2023

cargo, rustc and rustfmt are added by default when installing toolchain:
image

@ayamir ayamir merged commit 656e48a into main Jul 10, 2023
@ayamir ayamir deleted the migrate/mason-rustfmt branch July 10, 2023 06:40
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this pull request Jul 10, 2023
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

Successfully merging this pull request may close these issues.

3 participants