##First:
add these lines at the begin of your sorce file:
#![feature(link_args)]
#[link_args = "-Wl,--subsystem,windows"]
extern "C" {}
##Second:
->run cmd.exe
->cd into your project dir
->mkdir .cargo
then create a config file with these:
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "link-args=-mwindows "]