# 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 = "mkutils"
version = "0.1.167"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Utility methods, traits, and types."
readme = "README.md"
keywords = ["utilities"]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/mkxl/mkutils-rs"

[package.metadata.docs.rs]
all-features = true

[features]
async = [
    "dep:futures",
    "dep:tokio",
    "dep:tokio-stream",
    "dep:tokio-util",
]
http = [
    "dep:poem",
    "dep:poem-openapi",
    "dep:reqwest",
]
serde = [
    "dep:rmp-serde",
    "dep:serde_json",
    "dep:serde_yaml_ng",
]
tracing = [
    "dep:console-subscriber",
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:valuable",
]
tui = [
    "dep:arrayvec",
    "dep:crossterm",
    "dep:palette",
    "dep:ratatui",
    "dep:tokio",
    "dep:tracing",
    "dep:tree-sitter",
    "dep:tree-sitter-highlight",
    "dep:trie-rs",
    "dep:unicode-segmentation",
    "dep:zed-sum-tree",
]
unstable = []

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

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

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

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

[dependencies.anyhow]
version = "1.0.100"

[dependencies.arrayvec]
version = "0.7.6"
optional = true

[dependencies.bytes]
version = "1.10.1"

[dependencies.camino]
version = "1.2.1"

[dependencies.console-subscriber]
version = "0.4.1"
optional = true

[dependencies.crossterm]
version = "0.29.0"
features = [
    "event-stream",
    "libc",
    "serde",
    "use-dev-tty",
]
optional = true

[dependencies.derive_more]
version = "2.0.1"
features = [
    "add",
    "constructor",
    "from",
    "into",
    "is_variant",
    "mul",
]

[dependencies.either]
version = "1.16.0"

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.getset]
version = "0.1.6"

[dependencies.home]
version = "0.5.12"

[dependencies.mkutils-macros]
version = "0.1.167"

[dependencies.num]
version = "0.4.3"

[dependencies.palette]
version = "0.7.6"
optional = true

[dependencies.paste]
version = "1.0.15"

[dependencies.poem]
version = "3.1.12"
features = [
    "anyhow",
    "websocket",
]
optional = true

[dependencies.poem-openapi]
version = "5.1.16"
features = ["websocket"]
optional = true

[dependencies.ratatui]
version = "0.30.0"
features = [
    "crossterm_0_29",
    "unstable-backend-writer",
]
optional = true

[dependencies.reqwest]
version = "0.12.23"
features = ["json"]
optional = true

[dependencies.rmp-serde]
version = "1.3.0"
optional = true

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

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

[dependencies.serde_yaml_ng]
version = "0.10.0"
optional = true

[dependencies.shellexpand]
version = "3.1.1"

[dependencies.tokio]
version = "1.47.1"
features = [
    "fs",
    "io-std",
    "io-util",
    "macros",
    "net",
    "process",
    "rt",
]
optional = true

[dependencies.tokio-stream]
version = "0.1.17"
features = [
    "io-util",
    "sync",
]
optional = true

[dependencies.tokio-util]
version = "0.7.16"
features = [
    "codec",
    "io",
]
optional = true

[dependencies.tracing]
version = "0.1.41"
features = ["valuable"]
optional = true

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "json",
    "valuable",
]
optional = true

[dependencies.tree-sitter]
version = "0.26.9"
optional = true

[dependencies.tree-sitter-highlight]
version = "0.26.9"
optional = true

[dependencies.trie-rs]
version = "0.4.2"
optional = true

[dependencies.tuplities-remove]
version = "0.1.4"

[dependencies.typenum]
version = "1.19.0"

[dependencies.ulid]
version = "1.2.1"

[dependencies.unicode-segmentation]
version = "1.12.0"
optional = true

[dependencies.valuable]
version = "0.1.1"
optional = true

[dependencies.zed-sum-tree]
version = "0.2.0"
optional = true

[dev-dependencies.tokio-test]
version = "0.4.5"

[lints.clippy]
all = "deny"
cargo = "deny"
nursery = "deny"
pedantic = "deny"

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

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

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

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

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

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

[lints.rust]
warnings = "deny"
