# 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 = "snora"
version = "0.17.0"
authors = ["nabbisen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "iced engine for the Snora GUI framework. Consumes snora-core vocabulary."
readme = "README.md"
keywords = [
    "gui",
    "iced",
    "ui",
    "framework",
    "rtl",
]
categories = [
    "gui",
    "development-tools",
    "accessibility",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/nabbisen/snora"
resolver = "2"

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

[features]
default = ["widgets"]
lucide-icons = [
    "snora-core/lucide-icons",
    "snora-widgets?/lucide-icons",
    "dep:lucide-icons",
]
svg-icons = [
    "snora-core/svg-icons",
    "snora-widgets?/svg-icons",
    "iced/svg",
]
widgets = ["dep:snora-widgets"]

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

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

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

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

[dependencies.snora-core]
version = "0.17"

[dependencies.snora-widgets]
version = "0.17"
optional = true

[dev-dependencies.iced_test]
version = "0.14"
