#watch #file #solink-tokio-file-watch

solink-tokio-file-watch

Log flattened JSON in tracing

2 stable releases

1.0.1 Mar 19, 2025

#1085 in Encoding

Download history 111/week @ 2025-03-13 153/week @ 2025-03-20 4/week @ 2025-03-27 8/week @ 2025-04-03

276 downloads per month

MIT license

13KB
218 lines

solink-tokio-file-watch

Provides a library for watching a JSON file and reloading it when it changes.

Example:

let config_watch: JsonWatch<Config> = solink_tokio_file_watch::json_watch("./config.json").await?;

Dependencies

~4–17MB
~145K SLoC