[package]
name = "dynpatch-watcher"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
rust-version.workspace = true
description = "File watching and live config reloading for dynpatch"
documentation = "https://docs.rs/dynpatch-watcher"
keywords = ["watch", "config", "reload", "hot-reload"]
categories = ["development-tools", "config", "filesystem"]
readme = "README.md"
[dependencies]
dynpatch-interface = { path = "../dynpatch-interface", version = "0.1.0" }
arc-swap = { workspace = true }
notify = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
serde_json = { workspace = true, optional = true }
toml = { workspace = true, optional = true }
serde_yaml = { workspace = true, optional = true }
[dev-dependencies]
tempfile = { workspace = true }
[features]
default = ["json", "toml", "yaml"]
json = ["dep:serde_json"]
yaml = ["dep:serde_yaml"]
toml = ["dep:toml"]