There is a crates: https://crates.io/crates/windows-service
If possible, I want a features (such as winsrv) to this repository. When carrying this features and compiling it for the Windows platform, It will implement service_main implementation and control the running of the service, and respond to the Stop command. Service name and other information can be read through environment variables