From 2f660399edb69f4ea6f9b6645e3aaef9635123b5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 20 Mar 2017 12:55:46 -0700 Subject: [PATCH] Document the #![windows_subsystem] attribute --- src/attributes.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/attributes.md b/src/attributes.md index 234f901d5..b51dbe41b 100644 --- a/src/attributes.md +++ b/src/attributes.md @@ -64,6 +64,15 @@ type int8_t = i8; infinitely-recursive compile-time operations like auto-dereference or macro expansion. The default is `#![recursion_limit="64"]`. +- `windows_subsystem` - Indicates that when this crate is linked for a Windows + target it will configure the resulting binary's + [subsystem] via the linker. Valid values for this + attribute are `console` and `windows`, corresponding to + those two respective subsystems. More subsystems may be + allowed in the future, and this attribute is ignored on + non-Windows targets. + +[subsystem]: https://msdn.microsoft.com/en-us/library/fcc1zstk.aspx ### Module-only attributes