Skip to content

Commit 956f76b

Browse files
committed
Use windows_subsystem by default
1 parent 5ddf108 commit 956f76b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bot/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ license = "MIT OR Apache-2.0"
1313
keywords = ["twitch"]
1414
categories = ["games"]
1515

16+
[features]
17+
default = []
18+
cli = []
19+
scripting = ["chat/scripting"]
20+
1621
[dependencies]
1722
web = { workspace = true }
1823
settings = { workspace = true }
@@ -58,8 +63,3 @@ anyhow = { workspace = true }
5863

5964
[target.'cfg(target_os = "windows")'.dependencies]
6065
winapi = { version = "0.3.9", features = ["shellapi", "impl-default"] }
61-
62-
[features]
63-
default = []
64-
windows = []
65-
scripting = ["chat/scripting"]

bot/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(feature = "windows", windows_subsystem = "windows")]
1+
#![cfg_attr(all(windows, not(feature = "cli")), windows_subsystem = "windows")]
22

33
pub(crate) fn main() -> anyhow::Result<()> {
44
oxidize::cli::main()

0 commit comments

Comments
 (0)