windows-services

Crates.iowindows-services
lib.rswindows-services
version0.26.0
created_at2021-04-01 18:29:16.792069+00
updated_at2025-09-04 20:21:23.280102+00
descriptionWindows services
homepage
repositoryhttps://github.com/microsoft/windows-rs
max_upload_size
id376892
size28,885
Kenny Kerr (kennykerr)

documentation

README

Windows services

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.windows-services]
version = "0.26"

Use the Windows services support as needed. Here is how you might write a simple Windows services process:

fn main() {
    windows_services::Service::new()
        .can_pause()
        .can_stop()
        .run(|service, command| {
            // Respond to service commands...
        })
        .unwrap();
}
Commit count: 1734

cargo fmt