Describe what `windows_subsystem` does

This commit is contained in:
Chris Denton 2022-06-24 18:55:01 +01:00
parent 9fce337a55
commit 32fc50e5d2
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
1 changed files with 7 additions and 0 deletions

View File

@ -63,6 +63,13 @@ the [subsystem] when linking on a Windows target. It uses the
`console` or `windows`. This attribute is ignored on non-Windows targets, and
for non-`bin` [crate types].
The "console" subsystem is the default. If a console process is run from an
existing console then it will be attached to that console, otherwise a new
console window will be created.
The "windows" subsystem is commonly used by GUI applications that do not want to
display a console window on startup. It will run detached from any existing console.
```rust
#![windows_subsystem = "windows"]
```