# 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.88.0"
name = "slumber_util"
version = "5.0.0"
authors = ["Lucas Pickering <lucas@lucaspickering.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities used across several subcrates of Slumber. Not for external use."
homepage = "https://slumber.lucaspickering.me"
readme = false
keywords = [
    "rest",
    "http",
    "terminal",
    "tui",
]
license = "MIT"
repository = "https://github.com/LucasPickering/slumber"

[package.metadata.release]
tag = false

[features]
test = [
    "dep:rstest",
    "dep:tracing-subscriber",
]

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

[dependencies.derive_more]
version = "2.1.0"
features = [
    "deref",
    "display",
    "from",
]
default-features = false

[dependencies.dirs]
version = "6.0.0"

[dependencies.indexmap]
version = "2.0.0"
default-features = false

[dependencies.itertools]
version = "0.14.0"

[dependencies.path-clean]
version = "1.0.1"

[dependencies.rstest]
version = "0.26.0"
optional = true
default-features = false

[dependencies.saphyr]
version = "0.0.6"

[dependencies.serde]
version = "1.0.204"
default-features = false

[dependencies.serde_yaml]
version = "0.9.0"
default-features = false

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-subscriber]
version = "0.3.17"
features = [
    "ansi",
    "fmt",
    "registry",
]
optional = true
default-features = false

[dependencies.uuid]
version = "1.10.0"
features = ["v4"]
default-features = false

[dependencies.winnow]
version = "0.7.0"

[dev-dependencies.env-lock]
version = "1.0.1"

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

[dev-dependencies.rstest]
version = "0.26.0"
default-features = false

[dev-dependencies.serde]
version = "1.0.204"
features = ["derive"]
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3.17"
features = [
    "ansi",
    "fmt",
    "registry",
]
default-features = false

[dev-dependencies.uuid]
version = "1.10.0"
features = ["v4"]
default-features = false

[lints.clippy]
allow_attributes = "deny"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "warn"
default_trait_access = "allow"
doc_markdown = "allow"
explicit_deref_methods = "allow"
large_enum_variant = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
similar_names = "allow"
single_match = "allow"
too_many_lines = "allow"
unused_self = "allow"
used_underscore_binding = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

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

[lints.rust]
async_fn_in_trait = "allow"
unsafe_code = "forbid"
