File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ r[runtime.windows_subsystem]
15
15
r[ runtime.windows_subsystem.intro]
16
16
The * ` windows_subsystem ` attribute* may be applied at the crate level to set the [ subsystem] when linking on a Windows target.
17
17
18
+ > [ !EXAMPLE]
19
+ > ``` rust
20
+ > #![windows_subsystem = " windows" ]
21
+ > ```
22
+
18
23
r [runtime . windows_subsystem. syntax]
19
24
It uses the [MetaNameValueStr ] syntax to specify the subsystem with a value of either `console ` or `windows `.
20
25
@@ -27,10 +32,6 @@ The "console" subsystem is the default. If a console process is run from an exis
27
32
r [runtime . windows_subsystem. windows]
28
33
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 .
29
34
30
- ``` rust
31
- #![windows_subsystem = " windows" ]
32
- ```
33
-
34
35
[`GlobalAlloc `]: alloc :: alloc :: GlobalAlloc
35
36
[crate types ]: linkage . md
36
37
[static item ]: items / static - items . md
You can’t perform that action at this time.
0 commit comments