[package]
name = "iced-swdir-tree"
version = "0.7.1"
edition = "2024"
description = "iced widget for file tree powered by swdir, supporting selection, lazy loading and filtering."
authors = ["nabbisen"]
license = "Apache-2.0"
categories = ["gui", "filesystem"]
keywords = ["iced", "widget", "directory", "tree", "filesystem"]
readme = "README.md"
repository = "https://github.com/nabbisen/iced-swdir-tree"

[features]
default = []
# Enable lucide-icons integration. Without this, icons fall back to short text labels.
icons = ["dep:lucide-icons"]

[dependencies]
iced = "0.14"
swdir = "0.10"

[dependencies.lucide-icons]
version = "1"
features = ["iced"]
optional = true

[dev-dependencies]
# Integration tests operate on temp directories; no dev deps required.

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

[[example]]
name = "with_icons"
path = "examples/with_icons.rs"
required-features = ["icons"]

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

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

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

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

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

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
