build: add Makefile for Rust noobs#1318
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.