#service #windows #platform #operating-system #across #blocks #binaries

universal-service

A Rust crate that provides building blocks for creating service binaries across operating system platforms

1 unstable release

0.1.0 Jun 28, 2023

#736 in Operating systems

Download history 84/week @ 2024-07-22 106/week @ 2024-07-29 83/week @ 2024-08-05 94/week @ 2024-08-12 138/week @ 2024-08-19 162/week @ 2024-08-26 57/week @ 2024-09-02 106/week @ 2024-09-09 111/week @ 2024-09-16 155/week @ 2024-09-23 338/week @ 2024-09-30 168/week @ 2024-10-07 117/week @ 2024-10-14 170/week @ 2024-10-21 144/week @ 2024-10-28 54/week @ 2024-11-04

499 downloads per month

MIT license

15KB
213 lines

universal-service-rs

The universal-service crate provides building blocks for creating service binaries across operating system platforms.

Example

See examples/service.rs for a fully functional demo service:

cargo build --example service

On Windows, you can demonstrate the native Windows Service integration by running (as Administrator):

.\example-service-test.ps1

lib.rs:

universal-service is a Rust crate that provides utilities for building services that can run across multiple platforms.

For Windows users, this library provides support for running services under the Windows Service manager directly, rather than requiring Scheduled Tasks hacks or NSSM.

Dependencies

~2–27MB
~387K SLoC