winpty-rs-windows-services 0.24.0

Windows services
Documentation
  • Coverage
  • 66.67%
    14 out of 21 items documented1 out of 10 items with examples
  • Size
  • Source code size: 24.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 355.94 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • microsoft/windows-rs
    12706 657 36
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • andfoy

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.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...
        })
}