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"
name = "konfik"
version = "0.2.1"
build = false
include = [
    "src/**",
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "banner.svg",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "config parser"
readme = "README.md"
keywords = [
    "configuration",
    "cli",
    "validation",
    "file",
    "environment",
]
categories = ["config"]
license-file = "LICENSE"
repository = "https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:z2FpyXb6X6ENg3MvQPkMfqVN7LcD8/"

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

[dependencies.clap]
version = "4.5.45"
features = [
    "derive",
    "string",
]

[dependencies.konfik_derive]
version = "0.2"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "1.0"

[dependencies.toml]
version = "0.8"

[lints.clippy]
cargo = "deny"
complexity = "deny"
correctness = "deny"
nursery = "deny"
pedantic = "warn"
perf = "deny"
style = "deny"
suspicious = "deny"

[lints.clippy.allow_attributes]
level = "deny"
priority = 1

[lints.clippy.dbg_macro]
level = "warn"
priority = 1

[lints.clippy.expect_used]
level = "deny"
priority = 1

[lints.clippy.needless_pass_by_value]
level = "allow"
priority = 1

[lints.clippy.todo]
level = "warn"
priority = 1

[lints.clippy.unimplemented]
level = "warn"
priority = 1

[lints.clippy.unwrap_used]
level = "deny"
priority = 1

[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_patterns = "warn"
unsafe_code = "deny"
unused_must_use = "deny"