When I work with C I have a template-file with some basic #include’s, #define’s and a int main(… I always use. Not very important, but I find it efficient.
When I start a project with cargo new it always starts with code to say ‘Hello World”. Funny, but exactly never useful. Is there an easy way to replace that code with a template of my own?
I may not understand that topic enough, but I think that it gives a complicated solution for a simpel thing: the Hello World code cargo opens with, must reside somewhere. All I want is to replace that.
To solve the general case you can use something like cookiecutter. Though I've personally never used it (in any language), I prefer to make proper packages and add them as dependencies.