Shell opens along with the iced application in Windows 11 Pro
soucosmo opened this issue · 2 comments
soucosmo commented
Is there an existing issue for this?
- I have searched the existing issues.
Is this issue related to iced?
- My hardware is compatible and my graphics drivers are up-to-date.
What happened?
When running on Windows 11 Pro, a shell window opens, and the same window remains open throughout the execution of my application
Compiled using cargo build --release --target x86_64-pc-windows-gnu
My Cargo.toml
[package]
name = "costv"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
iced = { version = "0.12.1", features = ["lazy"] }
iced_core = "0.12.3"
[profile.release]
strip = true
What is the expected behavior?
I believe the shell window should not be displayed, this only happens on windows, on linux the application runs without the terminal window
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response
Koranir commented
Add #![windows_subsystem = "windows"]
to your crate root (main.rs
), that will disable the console.
soucosmo commented
Add
#![windows_subsystem = "windows"]
to your crate root (main.rs
), that will disable the console.
Thanks, this worked!