How to prevent creating console window?

I build: cargo run --release --features="winit glium" --example hello_world
If I call hello_world.exe, is additionaly console window.
I have similar problem in GO: https://forum.golangbridge.org/t/how-to-prevent-creating-console-window/4985 there says: go build -ldflags "-H windowsgui"

Use Rust 1.18 or newer, and put this at the top of your crate:

#![windows_subsystem = "windows"]
3 Likes