So far been using #![windows_subsystem = "windows"] to get rid of it, but I want to add CLI support to my application and I haven't found a way to allow that. Adding the snippet above hides the console but seems to have the side effect of disabling any text being outputted.
I want to show output when ran from the command line, but hide the console window that pops up along with the GUI when run with GUI (not necessarily hide the output, just the cmd window)
The downside is there may be a brief flash of a console window.
The other option would be to split the program in two. One with console output and one without. They could both, for example, load the same dll that does the real work. But admittedly that's more complex (both for you and users).