# 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.88"
name = "processkit"
version = "0.7.1"
build = false
exclude = [
    ".claude/",
    ".github/",
    "ideas/",
    ".editorconfig",
    ".gitattributes",
    "AGENTS.md",
    "CLAUDE.md",
    "cliff.toml",
    "deny.toml",
    "rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Child-process management: kill-on-drop process trees and async run-and-capture"
readme = "README.md"
keywords = [
    "process",
    "subprocess",
    "job-object",
    "cgroup",
    "tokio",
]
categories = [
    "os",
    "asynchronous",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/ZelAnton/ProcessKit-rs"

[package.metadata.docs.rs]
all-features = true

[features]
cancellation = ["dep:tokio-util"]
default = [
    "stats",
    "process-control",
]
limits = ["stats"]
mock = ["dep:mockall"]
process-control = []
record = [
    "dep:serde",
    "dep:serde_json",
]
stats = ["windows-sys/Win32_System_ProcessStatus"]
tracing = ["dep:tracing"]

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

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.mockall]
version = "0.13"
optional = true

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "process",
    "time",
    "io-util",
    "rt",
    "macros",
    "sync",
    "fs",
    "net",
]

[dependencies.tokio-stream]
version = "0.1"
features = ["io-util"]

[dependencies.tokio-util]
version = "0.7"
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"
optional = true

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "io-util",
    "test-util",
    "net",
]

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

[target."cfg(unix)".dev-dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_JobObjects",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_System_Diagnostics_ToolHelp",
]

[target."cfg(windows)".dev-dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
]

[lints.rust]
missing_debug_implementations = "warn"
