Reloadify 🔁
Reloadify is a Rust library designed to facilitate automatic reloading of configuration files in applications. It simplifies the process of detecting changes in configuration files (such as JSON, TOML, XML, etc.) and automatically applying those changes without requiring application restarts.
Features ✨
- Automatic Reloading: Detects changes in configuration files and automatically reloads them.
- Supports Multiple Formats: Works with JSON, TOML, XML, and more.
- Easy Integration: Designed for seamless integration into Rust applications.
- Live Changes: Returns a configuration receiving channel. When the configuration changes, the caller will receive latest configuration.
Installation 🚀
To use Reloadify in your Rust project, simply add it to your Cargo.toml:
[]
= "0.1"
If you want to use the latest version, you can import it like this:
[]
= { = "ssh://git@github.com/trayvonpan/reloadify.git", = "main" }
Usage 🛠️
Here's a basic example demonstrating how to use Reloadify to automatically reload a JSON configuration file:
use ;
use ;
use ;
const TS_CONFIG_ID: &str = "tsconfig";
Documentation 📚
For detailed usage instructions and API reference, see the documentation.
Contributing 🤝
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
License 📝
This project is licensed under the MIT License - see the LICENSE file for details.