# 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 = "tui-treelistview"
version = "0.1.2"
build = false
include = [
    "src/**",
    "examples/**",
    "benches/**",
    "Cargo.toml",
    "README.md",
    "LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Interactive tree list widget for Ratatui"
documentation = "https://docs.rs/tui-treelistview"
readme = "README.md"
keywords = [
    "tui",
    "ratatui",
    "tree",
    "widget",
    "terminal",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hexqnt/tui-treelistview"

[features]
edit = []
keymap = ["dep:crossterm"]
serde = ["dep:serde"]

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

[[example]]
name = "custom_keymap"
path = "examples/custom_keymap.rs"
required-features = ["keymap"]

[[example]]
name = "demo"
path = "examples/demo.rs"
required-features = [
    "keymap",
    "edit",
]

[[example]]
name = "edit_actions"
path = "examples/edit_actions.rs"
required-features = ["edit"]

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

[[bench]]
name = "perf"
path = "benches/perf.rs"
harness = false

[dependencies.crossterm]
version = "0.29.0"
optional = true

[dependencies.ratatui]
version = "0.30.2"
features = ["unstable-widget-ref"]

[dependencies.rustc-hash]
version = "2.1.3"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.smallvec]
version = "1.15.2"

[dev-dependencies.chrono]
version = "0.4.45"

[dev-dependencies.criterion]
version = "0.8.2"

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