Skip to content

Commit 87d3644

Browse files
authored
Merge pull request rust-lang#1232 from ChrisDenton/master
Describe what `windows_subsystem` does
2 parents 9fce337 + 32fc50e commit 87d3644

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/runtime.md

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ the [subsystem] when linking on a Windows target. It uses the
6363
`console` or `windows`. This attribute is ignored on non-Windows targets, and
6464
for non-`bin` [crate types].
6565

66+
The "console" subsystem is the default. If a console process is run from an
67+
existing console then it will be attached to that console, otherwise a new
68+
console window will be created.
69+
70+
The "windows" subsystem is commonly used by GUI applications that do not want to
71+
display a console window on startup. It will run detached from any existing console.
72+
6673
```rust
6774
#![windows_subsystem = "windows"]
6875
```

0 commit comments

Comments
 (0)