Skip to content

Commit

Permalink
Use windows_subsystem by default
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Mar 1, 2024
1 parent 5ddf108 commit 956f76b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion bot/src/main.rs
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 956f76b

Please sign in to comment.