Skip to content

crates-dev/hot-restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected].

About

A hot reboot lib project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages