# 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 = "2021"
rust-version = "1.78.0"
name = "hw"
version = "0.1.8"
authors = ["Eternal(梦游) <EternalNightYeah2@yeah.net>"]
build = "build.rs"
include = [
    "src/",
    "*.md",
    "LICENSE",
    "Cargo.toml",
    "COPYRIGHT",
    "build.rs",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "强大而统一的跨平台硬件监控工具"
homepage = "https://gitee.com/eternalnight996"
documentation = "https://docs.rs/hw"
readme = "README.md"
keywords = [
    "hardware",
    "monitor",
    "system",
    "sensors",
    "hw",
]
categories = [
    "hardware-support",
    "os::windows-apis",
    "development-tools::debugging",
    "os",
    "command-line-utilities",
]
license-file = "LICENSE"

[lib]
name = "hw"
crate-type = ["rlib"]
path = "src/lib.rs"
proc-macro = false

[[bin]]
name = "hw"
path = "src/main.rs"

[dependencies.e-log]
version = "0.3"
optional = true

[dependencies.e-utils]
version = "0.4"
features = [
    "tokio",
    "cmd",
    "parse",
]

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.goblin]
version = "0.9"
optional = true

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.structopt]
version = "0.3"
optional = true

[dependencies.strum]
version = "0.26"
features = ["derive"]

[dependencies.sysinfo]
version = "0.33"
default-features = false

[dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies]

[build-dependencies.built]
version = "0.7"
features = [
    "chrono",
    "git2",
]
optional = true

[build-dependencies.e-utils]
version = "0.4"

[features]
aida64 = [
    "wmi",
    "system",
]
build = [
    "winresource",
    "static_vcruntime",
    "e-utils/build",
]
built = [
    "dep:built",
    "e-utils/fs",
]
cli = ["structopt"]
component = ["sysinfo/component"]
default = [
    "ohm",
    "aida64",
    "os",
    "cli",
    "file-info",
    "drive",
    "tracing",
]
desktop = [
    "windows/Win32_Foundation",
    "windows/Win32_Storage_FileSystem",
    "windows/Win32_NetworkManagement_NetManagement",
]
disk = ["sysinfo/disk"]
drive = [
    "winapi/winbase",
    "winapi/libloaderapi",
    "winapi/minwinbase",
    "winapi/winuser",
]
file-info = [
    "goblin",
    "winapi/winbase",
    "winapi/processenv",
]
log = ["e-log/log"]
multithread = ["sysinfo/multithread"]
net-interface = [
    "windows/Win32_Foundation",
    "windows/Win32_NetworkManagement_IpHelper",
    "windows/Win32_Networking_WinSock",
    "libc",
]
network = [
    "sysinfo/network",
    "net-interface",
    "futures",
]
ohm = [
    "wmi",
    "system",
]
os = [
    "system",
    "user",
    "network",
    "multithread",
    "disk",
    "component",
    "os-system",
    "os-office",
]
os-office = []
os-system = []
system = ["sysinfo/system"]
tracing = ["e-log/tracing"]
user = [
    "sysinfo/user",
    "desktop",
]

[target.'cfg(target_os="windows")'.dependencies.winapi]
version = "0.3.9"
optional = true

[target.'cfg(target_os="windows")'.dependencies.windows]
version = "0.30"
optional = true

[target.'cfg(target_os="windows")'.dependencies.wmi]
version = "0.14"
optional = true

[target."cfg(windows)".build-dependencies.static_vcruntime]
version = "2"
optional = true

[target."cfg(windows)".build-dependencies.winresource]
version = "0.1"
optional = true
