-
Notifications
You must be signed in to change notification settings - Fork 58
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
build: add Makefile for Rust noobs #1318
base: master
Are you sure you want to change the base?
Conversation
With this minimal wrappers, one could just download&install Rust and after that just type 'make', no need to be knowledgeable about how to build things in Rust ecosystem.
So that's effectively simply an alias for |
For developing, it's much faster to type it. I could also add a Makefile target for doing a release build via |
Also, it is a convention to run the tests with |
agree, what is annoying for a noob is toolchain + linux dependencies |
To that end, I could contribute a configure.sh script that checks if all necessary Rust tools (and proper minimal versions) are installed, and if they are not, it would advise the user how to install them. |
This way a user gets hinted about what to install (and what version), and an example way to install it.
I added a 2nd commit that adds this check inside the Makefile actually (and gives the user a hint of 2 examples of how to install Rust). I could improve this later so that it checks the specific version of Rust that is needed. |
I will submit ‘make help’ configuration PR |
IMHO that PR doesn't follow the K.I.S.S. principle 😅 |
With this minimal wrappers, one could just download&install Rust and after that just type 'make', no need to be knowledgeable about how to build things in Rust ecosystem.