# 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"
name = "dampen-iced"
version = "0.3.1"
authors = ["Mattdef <mattdef@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Iced backend implementation for Dampen UI framework"
documentation = "https://docs.rs/dampen-cli"
readme = "README.md"
keywords = [
    "ui",
    "iced",
    "declarative",
    "gui",
    "framework",
]
categories = [
    "gui",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mattdef/dampen"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dampen-core]
version = "0.3.1"

[dependencies.iced]
version = "0.14"
features = [
    "tokio",
    "canvas",
    "image",
    "svg",
    "advanced",
]

[dependencies.iced_aw]
version = "0.13"
features = [
    "date_picker",
    "time_picker",
    "color_picker",
    "context_menu",
    "menu",
    "tab_bar",
]
default-features = false

[dependencies.serde_json]
version = "1.0"

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

[dev-dependencies.dampen-macros]
version = "0.3.1"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[lints.clippy]
dbg_macro = "warn"
expect_used = "deny"
panic = "deny"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
unwrap_used = "deny"

[lints.rust]
dead_code = "warn"
unused = "warn"
unused_imports = "warn"
unused_mut = "warn"
unused_variables = "warn"
