How do I make my binary look like an app

405 points NoMeatFingering

This might be a very basic question, sorry for that.

So I recently built my first project in rust. Now the binary doesn't have any app icon or stuff like that. It opens an empty console window.

I want the binary to have an icon, and also run it in background and show a tray icon.

I don't have any gui.

How do I go about it?