Recently, I was developing an app in rust, and I realized that it would not continue to run after I closed the terminal. What is the best way to code a rust program so that when you take the unix executable from the /target/debug/ directory, you can execute it and close the terminal without the program terminating? Maybe I could somehow convert the rust application to a .app (an application file for macos)?
P.S. Can I achieve this without using terminal to run the excecutable with "./rustapplicationunixexecutable &". I do know that the & symbol will make the process run in the background, however I want users to simply be able to double click the executable (or .app file) and have it run.