[package]
name        = "slint-ui-system"
version     = "0.4.0"
edition     = "2021"
rust-version = "1.75"
license     = "MIT OR Apache-2.0"
description = "Neon Design System — Slint UI components for Rust desktop apps. 35+ components, dark/light theme, neon accents."
repository  = "https://github.com/wilmercampagna/slint-ui-system"
homepage    = "https://github.com/wilmercampagna/slint-ui-system"
documentation = "https://docs.rs/slint-ui-system"
readme      = "README.md"
keywords    = ["slint", "ui", "design-system", "gui", "desktop"]
categories  = ["gui"]

# Files we ship with the published crate. The `.slint` library
# files + their SVG icons are required for any consumer (the
# `SLINT_LIBRARY_PATH` constant points at this directory). The
# demo source under `src/main.rs` ships too so users can build
# the demo from a fresh `cargo install`.
include = [
    "src/**/*.rs",
    "ui/**/*.slint",
    "ui/icons/**/*.svg",
    "build.rs",
    "README.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "docs/CHANGELOG.md",
    "docs/component-api.md",
    "docs/theme-tokens.md",
]

# ── Workspace ────────────────────────────────────────────────────
# `examples/simple/` is a self-contained crate with its own
# Cargo.toml — listing it here lets `cargo build --workspace`
# build everything in one shot AND share the target/ + Cargo.lock
# with the main crate.
[workspace]
members = ["examples/simple"]

# ── Library + binary ─────────────────────────────────────────────
# The library exposes the public API (theme helpers, color utils,
# the SLINT_LIBRARY_PATH constant). The `slint-ui-system` binary
# is the in-tree demo — runnable via `cargo run` for a quick
# component browser.

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

[[bin]]
name = "slint-ui-system"
path = "src/main.rs"

# ── Dependencies ─────────────────────────────────────────────────
[dependencies]
slint = "1.9"

[build-dependencies]
slint-build = "1.9"
glob        = "0.3"

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