@@ -21,25 +21,28 @@ The *`windows_subsystem` [attribute][attributes]* sets the [subsystem] when link
21
21
> ```
22
22
23
23
r [runtime . windows_subsystem. syntax]
24
- The `windows_subsystem ` attribute uses the [MetaNameValueStr ] syntax to specify the subsystem with a value of either ` console ` or ` windows `.
24
+ The `windows_subsystem ` attribute uses the [MetaNameValueStr ] syntax . Accepted values are ` " console" ` and ` " windows" `.
25
25
26
26
r [runtime . windows_subsystem. allowed- positions ]
27
27
The `windows_subsystem ` attribute may only be applied to the crate root .
28
28
29
29
r [runtime . windows_subsystem. duplicates]
30
- Only the first instance of `windows_subsystem ` on an item is honored . Subsequent ` example ` attributes are ignored .
30
+ Only the first use of `windows_subsystem` is honored.
31
31
32
32
> [! NOTE ]
33
- > `rustc ` currently warns on subsequent duplicate ` example ` attributes . This may become an error in the future .
33
+ > `rustc` currently lints against uses following the first . This may become a hard error in the future.
34
34
35
35
r[runtime. windows_subsystem. ignored]
36
- The `windows_subsystem ` attribute is ignored on non - Windows targets , and for non - `bin ` [crate types ].
36
+ The `windows_subsystem` attribute is ignored on non- Windows targets and non- `bin` [crate types].
37
37
38
38
r[runtime. windows_subsystem. console]
39
- 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 .
39
+ 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 .
40
40
41
41
r [runtime . windows_subsystem. windows]
42
- 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 .
42
+ The `" windows" ` subsystem will run detached from any existing console .
43
+
44
+ > [! NOTE ]
45
+ > The `" windows" ` subsystem is commonly used by GUI applications that do not want to display a console window on startup .
43
46
44
47
[`GlobalAlloc `]: alloc :: alloc :: GlobalAlloc
45
48
[crate types ]: linkage . md
0 commit comments