live 0.3.5

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.5"
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",
    "fs",
    "dep:serde",
    "dep:thiserror",
    "dep:tokio",
    "tokio/sync",
    "tokio/fs",
]
default = []
events = [
    "holder",
    "atomhold/events",
    "dep:tokio",
    "tokio/sync",
]
fs = [
    "loader",
    "fmtstruct/fs",
]
full = [
    "holder",
    "loader",
    "signal",
    "controller",
    "events",
    "fs",
    "json",
    "toml",
    "yaml",
    "validate",
    "match",
    "stream",
]
holder = ["dep:atomhold"]
json = [
    "loader",
    "fmtstruct/json",
]
loader = [
    "dep:fmtstruct",
    "fmtstruct/std",
]
match = [
    "signal",
    "fsig/match",
]
postcard = [
    "loader",
    "fmtstruct/postcard",
]
regex = [
    "loader",
    "fmtstruct/regex",
]
serde = ["fsig?/serde"]
signal = ["dep:fsig"]
stream = [
    "signal",
    "fsig/stream",
]
toml = [
    "loader",
    "fmtstruct/toml",
]
validate = [
    "loader",
    "fmtstruct/validate",
]
yaml = [
    "loader",
    "fmtstruct/yaml",
]

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

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

[[example]]
name = "live_dir"
path = "examples/live_dir.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.atomhold]
version = "0.2"
optional = true

[dependencies.fmtstruct]
version = "0.2"
optional = true
default-features = false

[dependencies.fsig]
version = "0.2"
optional = true
default-features = false

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

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

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

[dev-dependencies.serde]
version = "1"
features = ["derive"]

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

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

[dev-dependencies.validator]
version = "0.20"
features = ["derive"]