live 0.3.1

A modular configuration framework with live reloading and atomic, format-agnostic updates.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.93"
name = "live"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modular configuration framework with live reloading and atomic, format-agnostic updates."
readme = "README.md"
keywords = [
    "config",
    "live-reload",
    "atomic",
    "async",
    "monitoring",
]
categories = [
    "config",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/canmi21/live.git"

[features]
controller = [
    "holder",
    "loader",
]
default = []
events = [
    "holder",
    "dep:tokio",
]
fs = [
    "loader",
    "dep:tokio",
]
full = [
    "events",
    "fs",
    "json",
    "toml",
    "yaml",
    "validate",
    "match",
    "stream",
    "logging",
    "controller",
]
holder = [
    "dep:arc-swap",
    "dep:thiserror",
]
json = [
    "loader",
    "dep:serde_json",
]
loader = [
    "dep:async-trait",
    "dep:thiserror",
    "dep:serde",
]
logging = ["dep:log"]
match = [
    "signal",
    "dep:globset",
]
postcard = [
    "loader",
    "dep:postcard",
]
regex = [
    "validate",
    "dep:fancy-regex",
]
serde = ["dep:serde"]
signal = [
    "dep:notify",
    "dep:tracing",
    "dep:tokio",
    "dep:thiserror",
]
stream = [
    "signal",
    "dep:futures-util",
    "dep:tokio-stream",
    "tokio-stream/sync",
]
toml = [
    "loader",
    "dep:toml",
]
validate = [
    "loader",
    "dep:validator",
]
yaml = [
    "loader",
    "dep:serde_yaml",
]

[lib]
name = "live"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["full"]

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "loader_tests"
path = "tests/loader_tests.rs"

[[test]]
name = "store_tests"
path = "tests/store_tests.rs"

[dependencies.arc-swap]
version = "1"
optional = true

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.fancy-regex]
version = "0.17"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.globset]
version = "0.4"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.notify]
version = "8"
optional = true

[dependencies.postcard]
version = "1"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.thiserror]
version = "2"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "fs",
    "io-util",
    "time",
    "rt",
    "macros",
    "rt-multi-thread",
]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.toml]
version = "0.9"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.validator]
version = "0.20"
features = ["derive"]
optional = true

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]