Skip to content

Commit

Permalink
Merge pull request #1232 from ChrisDenton/master
Browse files Browse the repository at this point in the history
Describe what `windows_subsystem` does
  • Loading branch information
ehuss authored Jul 11, 2022
2 parents 9fce337 + 32fc50e commit 87d3644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
```
Expand Down

0 comments on commit 87d3644

Please sign in to comment.