[package]
edition = "2021"
rust-version = "1.74"
name = "process-terminator"
version = "2.0.0"
authors = ["SCP002"]
build = false
exclude = [".github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stop processes gracefully, even on Windows, without a kamikaze proxy binary."
documentation = "https://docs.rs/process-terminator"
readme = "README.md"
keywords = [
"kill",
"signal",
"ctrl-c",
"sigint",
"process",
]
categories = [
"os",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/SCP002/terminator"
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
]
[lib]
name = "terminator"
path = "src/lib.rs"
[[bin]]
name = "terminator"
path = "src/bin/cli.rs"
[[example]]
name = "stop_child"
path = "examples/stop_child.rs"
[[example]]
name = "victim"
path = "examples/victim.rs"
[[test]]
name = "console"
path = "tests/console.rs"
[[test]]
name = "posix"
path = "tests/posix.rs"
[[test]]
name = "process"
path = "tests/process.rs"
[[test]]
name = "window"
path = "tests/window.rs"
[dependencies.sysinfo]
version = "0.32"
features = ["system"]
default-features = false
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Console",
"Win32_System_LibraryLoader",
"Win32_System_Threading",
"Win32_UI_WindowsAndMessaging",
]
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true