[package]
edition = "2024"
name = "zonfig"
version = "0.1.0"
authors = ["zero<zero9501@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A small dynamic configuration loader with file watching and hot reload support."
homepage = "https://github.com/zlx2019/zonfig"
documentation = "https://docs.rs/zonfig"
readme = "README.md"
keywords = [
"config",
"configuration",
"hot-reload",
"watch",
"serde",
]
categories = ["config"]
license = "MIT"
repository = "https://github.com/zlx2019/zonfig"
[lib]
name = "zonfig"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "watch"
path = "examples/watch.rs"
[[test]]
name = "load"
path = "tests/load.rs"
[[test]]
name = "watch"
path = "tests/watch.rs"
[dependencies.arc-swap]
version = "1"
[dependencies.notify]
version = "8.2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9.34"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"sync",
"time",
]
[dependencies.toml]
version = "1.1.2"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]