| Crates.io | winpty-rs-windows-services |
| lib.rs | winpty-rs-windows-services |
| version | 0.24.0 |
| created_at | 2025-08-04 20:51:59.871779+00 |
| updated_at | 2025-08-04 20:51:59.871779+00 |
| description | Windows services |
| homepage | |
| repository | https://github.com/microsoft/windows-rs |
| max_upload_size | |
| id | 1781153 |
| size | 24,475 |
The windows-services crate provides a simple and safe way to implement Windows services in Rust.
Start by adding the following to your Cargo.toml file:
[dependencies.winpty-rs-windows-services]
version = "0.24"
Use the Windows services support as needed. Here is how you might write a simple Windows services process:
fn main() {
winpty_rs_windows_services::Service::new()
.can_pause()
.can_stop()
.run(|command| {
// Respond to service commands...
})
}