# 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-iced"
version = "0.8.3"
authors = [
    "Héctor Ramón Jiménez <hector@hecrj.dev>",
    "Daniel Hedlund <daniel@digitree.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Vendored fork of iced for Plushie UI -- a cross-platform GUI library inspired by Elm"
homepage = "https://github.com/plushie-ui/plushie-iced"
readme = "README.md"
keywords = [
    "gui",
    "ui",
    "graphics",
    "interface",
    "accessibility",
]
categories = ["gui"]
license = "MIT"
repository = "https://github.com/plushie-ui/plushie-iced"

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

[badges.maintenance]
status = "actively-developed"

[features]
a11y = ["iced_winit/a11y"]
advanced = [
    "iced_core/advanced",
    "iced_widget/advanced",
]
advanced-shaping = ["iced_core/advanced-shaping"]
basic-shaping = ["iced_core/basic-shaping"]
canvas = ["iced_widget/canvas"]
crisp = ["iced_core/crisp"]
debug = [
    "iced_winit/debug",
    "dep:iced_devtools",
]
default = [
    "wgpu",
    "tiny-skia",
    "crisp",
    "hinting",
    "web-colors",
    "thread-pool",
    "linux-theme-detection",
    "x11",
    "wayland",
]
fira-sans = ["iced_renderer/fira-sans"]
highlighter = [
    "iced_highlighter",
    "iced_widget/highlighter",
]
hinting = ["iced_winit/hinting"]
hot = [
    "debug",
    "iced_debug/hot",
]
image = [
    "image-without-codecs",
    "image/default",
    "iced_winit/image",
]
image-without-codecs = [
    "iced_widget/image",
    "dep:image",
]
lazy = ["iced_widget/lazy"]
linux-theme-detection = ["iced_winit/linux-theme-detection"]
markdown = ["iced_widget/markdown"]
qr_code = ["iced_widget/qr_code"]
selector = ["iced_runtime/selector"]
sipper = ["iced_runtime/sipper"]
smol = ["iced_futures/smol"]
strict-assertions = ["iced_renderer/strict-assertions"]
svg = ["iced_widget/svg"]
sysinfo = ["iced_winit/sysinfo"]
tester = ["dep:iced_tester"]
thread-pool = ["iced_futures/thread-pool"]
time-travel = [
    "debug",
    "iced_devtools/time-travel",
]
tiny-skia = ["iced_renderer/tiny-skia"]
tokio = ["iced_futures/tokio"]
unconditional-rendering = ["iced_winit/unconditional-rendering"]
wayland = [
    "iced_renderer/wayland",
    "iced_winit/wayland",
]
web-colors = ["iced_renderer/web-colors"]
webgl = ["iced_renderer/webgl"]
wgpu = [
    "wgpu-bare",
    "iced_renderer/wgpu",
]
wgpu-bare = [
    "iced_renderer/wgpu-bare",
    "iced_widget/wgpu",
]
x11 = [
    "iced_renderer/x11",
    "iced_winit/x11",
]

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

[[bench]]
name = "wgpu"
path = "benches/wgpu.rs"
harness = false
required-features = ["canvas"]

[dependencies.iced_core]
version = "0.8.3"
package = "plushie-iced-core"

[dependencies.iced_debug]
version = "0.8.3"
package = "plushie-iced-debug"

[dependencies.iced_devtools]
version = "0.8.3"
optional = true
package = "plushie-iced-devtools"

[dependencies.iced_futures]
version = "0.8.3"
package = "plushie-iced-futures"

[dependencies.iced_highlighter]
version = "0.8.3"
optional = true
package = "plushie-iced-highlighter"

[dependencies.iced_renderer]
version = "0.8.3"
package = "plushie-iced-renderer"

[dependencies.iced_runtime]
version = "0.8.3"
package = "plushie-iced-runtime"

[dependencies.iced_tester]
version = "0.8.3"
optional = true
package = "plushie-iced-tester"

[dependencies.iced_widget]
version = "0.8.3"
package = "plushie-iced-widget"

[dependencies.iced_winit]
version = "0.8.3"
default-features = false
package = "plushie-iced-winit"

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

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.iced_wgpu]
version = "0.8.3"
default-features = false
package = "plushie-iced-wgpu"

[lints.clippy]
default_trait_access = "deny"
filter_map_next = "deny"
from_over_into = "deny"
large-enum-variant = "allow"
manual_let_else = "deny"
map-entry = "allow"
match-wildcard-for-single-variants = "deny"
needless_borrow = "deny"
new_without_default = "deny"
redundant-closure-for-method-calls = "deny"
result_large_err = "allow"
semicolon_if_nothing_returned = "deny"
trivially-copy-pass-by-ref = "deny"
type-complexity = "allow"
unused_async = "deny"
useless_conversion = "deny"

[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"
unused_results = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "forbid"

[profile.release-opt]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
overflow-checks = false
incremental = false
inherits = "release"
strip = "debuginfo"
