Edit Default Cargo's 'main.rs' File

Hi all,

I'm just wondering if it is possible to edit the default src/main.rs file provided by cargo new, to give me some other bits of boilerplate code rather than just hello world?

No problem if not, just curious!

cargo generate seems like what you need.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.