# 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"
rust-version = "1.85"
name = "kanade-agent"
version = "0.43.23"
authors = ["yukimemi <yukimemi@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Windows-side resident daemon for the kanade endpoint-management system. Subscribes to commands.* over NATS, runs scripts, publishes WMI inventory + heartbeats, watches for self-updates"
homepage = "https://github.com/yukimemi/kanade"
readme = "README.md"
keywords = [
    "nats",
    "jetstream",
    "endpoint-management",
    "orchestration",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/yukimemi/kanade"
resolver = "2"

[[bin]]
name = "kanade-agent"
path = "src/main.rs"

[[test]]
name = "offline_boot"
path = "tests/offline_boot.rs"

[dependencies.anyhow]
version = "1.0.102"

[dependencies.async-nats]
version = "0.49.1"

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "1.11.1"

[dependencies.chrono]
version = "0.4.45"
features = ["serde"]

[dependencies.clap]
version = "4.6.1"
features = [
    "derive",
    "env",
]

[dependencies.futures]
version = "0.3.32"

[dependencies.humantime]
version = "2.3.0"

[dependencies.kanade-shared]
version = "0.43.16"

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.sha2]
version = "0.11.0"

[dependencies.sysinfo]
version = "0.39.3"
features = [
    "system",
    "disk",
    "network",
]
default-features = false

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

[dependencies.tokio-cron-scheduler]
version = "0.15.1"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-appender]
version = "0.2.5"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dependencies.uuid]
version = "1.23.2"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.async-nats]
version = "0.49.1"

[dev-dependencies.kanade-shared]
version = "0.43.16"

[dev-dependencies.portpicker]
version = "0.1.1"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.which]
version = "8.0.2"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Security_Authorization",
    "Win32_Storage_FileSystem",
    "Win32_System_Environment",
    "Win32_System_IO",
    "Win32_System_JobObjects",
    "Win32_System_Pipes",
    "Win32_System_RemoteDesktop",
    "Win32_System_StationsAndDesktops",
    "Win32_System_Threading",
]

[target.'cfg(target_os = "windows")'.dependencies.windows-service]
version = "0.8.1"

[target.'cfg(target_os = "windows")'.build-dependencies.winres]
version = "0.1.12"
