From 956f76bb930da2948c1c07e24cc39471e1808b13 Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Fri, 1 Mar 2024 11:56:21 +0100 Subject: [PATCH] Use windows_subsystem by default --- bot/Cargo.toml | 10 +++++----- bot/src/main.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bot/Cargo.toml b/bot/Cargo.toml index 99b660b4..511ad62d 100644 --- a/bot/Cargo.toml +++ b/bot/Cargo.toml @@ -13,6 +13,11 @@ license = "MIT OR Apache-2.0" keywords = ["twitch"] categories = ["games"] +[features] +default = [] +cli = [] +scripting = ["chat/scripting"] + [dependencies] web = { workspace = true } settings = { workspace = true } @@ -58,8 +63,3 @@ anyhow = { workspace = true } [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3.9", features = ["shellapi", "impl-default"] } - -[features] -default = [] -windows = [] -scripting = ["chat/scripting"] diff --git a/bot/src/main.rs b/bot/src/main.rs index 184c8f25..870eaa36 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,4 +1,4 @@ -#![cfg_attr(feature = "windows", windows_subsystem = "windows")] +#![cfg_attr(all(windows, not(feature = "cli")), windows_subsystem = "windows")] pub(crate) fn main() -> anyhow::Result<()> { oxidize::cli::main()