# 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.95"
name = "altair-config"
version = "0.1.5"
authors = ["Jasoet <jasoet87@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe TOML config loading with env overrides and validation"
homepage = "https://github.com/jasoet/altair-rs"
readme = "README.md"
keywords = [
    "config",
    "toml",
    "figment",
    "validator",
    "serde",
]
categories = ["config"]
license = "MIT"
repository = "https://github.com/jasoet/altair-rs"

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

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "env_override"
path = "examples/env_override.rs"

[[example]]
name = "from_file"
path = "examples/from_file.rs"

[[example]]
name = "from_reader"
path = "examples/from_reader.rs"

[[example]]
name = "layered_loader"
path = "examples/layered_loader.rs"

[[example]]
name = "validation_errors"
path = "examples/validation_errors.rs"

[dependencies.figment]
version = "0.10"
features = [
    "toml",
    "env",
]

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

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.figment]
version = "0.10"
features = [
    "toml",
    "env",
    "test",
]

[dev-dependencies.pretty_assertions]
version = "1.4"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
    "signal",
    "macros",
    "rt",
]

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

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

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

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
