cli-or-gui 0.1.0

A robust, cross-platform utility to detect if an application was launched from a terminal or a GUI.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "cli-or-gui"
version = "0.1.0"
authors = ["Cody Wyatt Neiman (xangelix) <neiman@cody.to>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A robust, cross-platform utility to detect if an application was launched from a terminal or a GUI."
documentation = "https://docs.rs/cli-or-gui"
readme = "README.md"
keywords = [
    "windows",
    "cli",
    "gui",
    "terminal-detection",
    "hide-console",
]
categories = [
    "command-line-interface",
    "gui",
    "os::windows-apis",
    "os::unix-apis",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/xangelix/cli-or-gui"

[lib]
name = "cli_or_gui"
path = "src/lib.rs"

[target."cfg(not(windows))".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Win32_Security",
    "Win32_System_Console",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_ProcessStatus",
    "Win32_System_Threading",
    "Win32_UI_WindowsAndMessaging",
]