# 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 = "dear-file-browser"
version = "0.10.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File dialogs and in-UI file browser for dear-imgui-rs"
homepage = "https://github.com/Latias94/dear-imgui-rs"
readme = "README.md"
keywords = [
    "imgui",
    "ui",
    "graphics",
    "docking",
    "multiview",
]
categories = [
    "gui",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Latias94/dear-imgui-rs"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "imgui",
    "native-rfd",
]

[features]
default = [
    "imgui",
    "native-rfd",
    "tracing",
]
imgui = [
    "dep:chrono",
    "dep:regex",
]
native-rfd = ["dep:rfd"]
thumbnails-image = [
    "imgui",
    "dep:image",
]
tracing = ["dep:tracing"]

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["clock"]
optional = true
default-features = false

[dependencies.dear-imgui-rs]
version = "0.10"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
]
optional = true
default-features = false

[dependencies.indexmap]
version = "2"

[dependencies.regex]
version = "1.11"
optional = true

[dependencies.rfd]
version = "0.17"
features = ["xdg-portal"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.pollster]
version = "0.4"
