# 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.92"
name = "plushie-widget-sdk"
version = "0.7.0"
authors = ["Daniel Hedlund <daniel@digitree.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Widget SDK for Plushie"
readme = "README.md"
keywords = [
    "gui",
    "desktop",
    "framework",
    "native",
    "iced",
]
categories = [
    "gui",
    "rendering",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/plushie-ui/plushie-rust"
resolver = "2"

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

[features]
tokio = ["iced/tokio"]

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.iced]
version = "0.8"
features = [
    "advanced",
    "image-without-codecs",
    "svg",
    "canvas",
    "markdown",
    "highlighter",
    "a11y",
]
default-features = false
package = "plushie-iced"

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

[dependencies.log]
version = "0.4"

[dependencies.lru]
version = "0.16"

[dependencies.parking_lot]
version = "0.12"

[dependencies.plushie-core]
version = "0.7.0"

[dependencies.plushie-core-macros]
version = "0.7.0"

[dependencies.qrcode]
version = "0.14"
default-features = false

[dependencies.rmp-serde]
version = "1"

[dependencies.rmpv]
version = "1"
features = ["with-serde"]

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

[dependencies.serde_json]
version = "1"

[dependencies.usvg]
version = "=0.45.1"

[dev-dependencies.proptest]
version = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.iced]
version = "0.8"
features = [
    "thread-pool",
    "tiny-skia",
    "x11",
    "wayland",
]
default-features = false
package = "plushie-iced"

[lints.clippy]
missing_errors_doc = "warn"
missing_panics_doc = "warn"

[lints.rust]
unreachable_patterns = "deny"
unsafe_code = "deny"
unused_must_use = "deny"
