hot-restart

Crates.iohot-restart
lib.rshot-restart
version0.6.0
created_at2025-05-31 02:12:12.525523+00
updated_at2025-08-08 13:24:47.865932+00
descriptionA Rust library for hot restarting applications without downtime. Provides seamless process replacement for servers and long-running services, enabling zero-downtime updates and configuration reloads.
homepage
repositoryhttps://github.com/crates-dev/hot-restart.git
max_upload_size
id1695924
size20,212
尤雨东 (eastspire)

documentation

README

hot-restart

Official Documentation

Api Docs

A Rust library for hot restarting applications without downtime. Provides seamless process replacement for servers and long-running services, enabling zero-downtime updates and configuration reloads.

Installation

To use this crate, you can run cmd:

cargo add hot-restart

Use

use hot_restart::*;

async fn before_restart_hook() {}

#[tokio::main]
async fn main() {
    let res = hot_restart(
        &["--once", "-x", "check", "-x", "build", "--release"],
        before_restart_hook(),
    )
    .await;
    println!("hot_restart result: {:?}", res);
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at root@ltpp.vip.

Commit count: 0

cargo fmt