3 releases
0.1.2 | Nov 18, 2022 |
---|---|
0.1.1 | Nov 4, 2022 |
0.1.0 | Apr 1, 2022 |
#8 in #forever
54 downloads per month
Used in wmproxy
27KB
587 lines
forever-rs
rust守护进程, 轻松实现守护
Cargo.toml dependencies
[dependencies]
forever-rs = { version = "0.1.0" }
example
监控文件改变就自动重启, 或者子进程意外退出重启
#[forever_rs::main(monitor_file="Cargo.lock", max_times=6)]
fn main() {
println!("Hello, world!");
}
Dependencies
~1.3–1.7MB
~40K SLoC