[package]
edition = "2024"
rust-version = "1.88"
name = "restart-manager"
version = "0.1.0"
build = false
include = [
"/src/**",
"/examples/**",
"/tests/**",
"/docs/adr/**",
"/docs/release.md",
"/README.md",
"/CHANGELOG.md",
"/SECURITY.md",
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/LICENSES/**",
"/REUSE.toml",
"/Cargo.toml",
"/Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, human-friendly wrapper for the Windows Restart Manager API: find, stop, and restart the processes that lock your files"
documentation = "https://docs.rs/restart-manager"
readme = "README.md"
keywords = [
"windows",
"restart-manager",
"rstrtmgr",
"file-lock",
"ffi",
]
categories = [
"os::windows-apis",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/P4suta/restart-manager"
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
all-features = true
[features]
default = []
tokio = ["dep:tokio"]
[lib]
name = "restart_manager"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "installer"
path = "examples/installer.rs"
[[example]]
name = "primary_and_joined"
path = "examples/primary_and_joined.rs"
[[example]]
name = "tokio_installer"
path = "examples/tokio_installer.rs"
required-features = ["tokio"]
[[test]]
name = "portable_api"
path = "tests/portable_api.rs"
[[test]]
name = "windows_native"
path = "tests/windows_native.rs"
[dependencies.bitflags]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["sync"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
]
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Recovery",
"Win32_System_RestartManager",
"Win32_System_Threading",
]
[lints.clippy]
undocumented_unsafe_blocks = "deny"