Fixed running with console on Windows when compiled as GUI app.

This commit is contained in:
Revertron
2021-02-19 22:04:58 +01:00
parent 6676c0779f
commit 2bea778e0f
2 changed files with 24 additions and 1 deletions
+5 -1
View File
@@ -1,9 +1,10 @@
[package]
name = "alfis"
version = "0.1.0"
authors = ["Revertron <rev@revertron.com>"]
authors = ["Revertron <alfis@revertron.com>"]
edition = "2018"
build = "build.rs"
readme = "README.md"
homepage = "https://alfis.name"
repository = "https://github.com/Revertron/Alfis"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -30,6 +31,9 @@ mio = { version = "0.7", features = ["os-poll", "net"] }
# for DNS from hermes
derive_more = "0.99.9"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.7", features = ["impl-default", "wincon"]}
[build-dependencies]
winres = "0.1"