rtb-config 0.6.2

Layered, typed configuration backed by figment. Part of the phpboyscout Rust toolkit.
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 = "2021"
rust-version = "1.82"
name = "rtb-config"
version = "0.6.2"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Layered, typed configuration backed by figment. Part of the phpboyscout Rust toolkit."
homepage = "https://config.rust.phpboyscout.uk"
documentation = "https://docs.rs/rtb-config"
readme = "README.md"
keywords = [
    "config",
    "configuration",
    "figment",
    "layered",
    "hot-reload",
]
categories = [
    "config",
    "development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust/config"

[features]
default = []
hot-reload = [
    "dep:notify",
    "dep:notify-debouncer-full",
]
mutable = [
    "dep:schemars",
    "dep:serde_json",
    "dep:serde_yaml",
    "dep:toml",
]

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

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

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

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

[dependencies.arc-swap]
version = "1.9.2"

[dependencies.figment]
version = "0.10.19"
features = [
    "toml",
    "yaml",
    "json",
    "env",
]

[dependencies.miette]
version = "7.6.0"
features = ["fancy"]

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

[dependencies.notify-debouncer-full]
version = "0.7.0"
optional = true

[dependencies.schemars]
version = "1.2.1"
optional = true

[dependencies.serde]
version = "1.0.229"
features = ["derive"]

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

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

[dependencies.thiserror]
version = "2.0.19"

[dependencies.tokio]
version = "1.53.0"
features = ["full"]

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

[dev-dependencies.cucumber]
version = "0.23.0"
features = ["macros"]

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

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"