Skip to content

Commit 9e46a30

Browse files
authored
Merge pull request rust-lang#16 from alexcrichton/subsystem
Document the #![windows_subsystem] attribute
2 parents 5165499 + 2f66039 commit 9e46a30

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/attributes.md

+9
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ type int8_t = i8;
6464
infinitely-recursive compile-time operations like
6565
auto-dereference or macro expansion. The default is
6666
`#![recursion_limit="64"]`.
67+
- `windows_subsystem` - Indicates that when this crate is linked for a Windows
68+
target it will configure the resulting binary's
69+
[subsystem] via the linker. Valid values for this
70+
attribute are `console` and `windows`, corresponding to
71+
those two respective subsystems. More subsystems may be
72+
allowed in the future, and this attribute is ignored on
73+
non-Windows targets.
74+
75+
[subsystem]: https://msdn.microsoft.com/en-us/library/fcc1zstk.aspx
6776

6877
### Module-only attributes
6978

0 commit comments

Comments
 (0)