makepad/widgets/Cargo.toml

98 lines
3.9 KiB
TOML

[package]
name = "makepad-widgets"
version = "2.0.0"
authors = ["Makepad <info@makepad.nl>"]
edition = "2021"
description = "Makepad widgets2"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/makepad/makepad/"
repository = "https://github.com/makepad/makepad/"
metadata.makepad-auto-version = "N0YGjn7dnhc4DEHmww9lwuYwMVI="
[dependencies]
makepad-draw = { path = "../draw", version = "2.0.0" }
makepad-derive-widget = {path = "./derive_widget", version="2.0.0"}
makepad-mbtile-reader = { path = "../libs/mbtile_reader", version = "1.0.0", optional = true }
i_overlay = { path = "../libs/i_overlay", version = "7.0.3", optional = true, default-features = false }
makepad-fast-inflate = { path = "../libs/fast_inflate", optional = true }
# Silero VAD (the speech gate) from the speech model family; only that module.
makepad-ai-speech = { path = "../libs/ai/models/speech", default-features = false, features = ["vad"], optional = true }
# Speech-to-text sessions (Whisper here / machine / LAN, else the OS engine).
# No default features: only the speech pipes, never the image/video backends.
makepad-ai-hub = { path = "../libs/ai/hub", default-features = false, features = ["stt"], optional = true }
makepad-cef = { path = "../libs/cef", optional = true }
# Public optional sibling crates. These are re-exported from lib.rs so an
# application can depend on makepad-widgets as its sole Makepad source.
makepad-gltf = { path = "../libs/gltf", optional = true }
makepad-csg = { path = "../libs/csg/csg", optional = true }
makepad-test = { path = "../libs/makepad_test", optional = true }
makepad-html = { path = "../libs/html", version = "1.0.0", optional = true }
unicode-segmentation = { version = "1.12.0", path = "../libs/unicode/unicode-segmentation" }
pulldown-cmark = { version = "0.12.2", path = "../libs/pulldown-cmark", default-features = false, features = ["simd"], optional = true }
makepad-latex-math = { path = "../libs/latex_math", version = "0.1.0", optional = true }
makepad-pdf-parse = { path = "../libs/pdf_parse", version = "1.0.0", optional = true }
ttf-parser = { path = "../libs/ttf-parser" }
serde = { version = "1.0", optional = true, features = ["derive"] }
[features]
# The big widget families, each a feature and all on by default. An app that
# wants a smaller binary takes `default-features = false` and names the
# families it uses; the core (views, window, labels, buttons, inputs, menus,
# lists, tabs, popups and the like) is always there.
default = [
"tweaker",
"charts",
"color",
"data",
"dates",
"chat",
"dock",
"rich_text",
"dropzone",
"vector",
"glass",
"nav_menus",
"command_palette",
]
# The design-feedback overlay every Window carries (inert unless --remote),
# with the reflection and saved-theme store it reads and writes.
tweaker = ["dock", "data"]
# Chart, chart shapes and the waveform lane.
charts = ["color"]
# The colour picker family.
color = []
# Data grid, tree view and file tree.
data = []
# Calendar, date picker and time picker.
dates = []
# Chat bubbles and the chat list.
chat = []
# The docking layout.
dock = []
# Text flow, rich text, HTML, Markdown, LaTeX maths and the log list.
rich_text = ["dep:makepad-html", "dep:pulldown-cmark", "dep:makepad-latex-math"]
# The file drop target and upload list.
dropzone = []
# The vector drawing widget.
vector = []
# The glass panel family.
glass = []
# Floating action, radial, pill-nav, line and hamburger menus.
nav_menus = []
# The command palette.
command_palette = []
voice = ["dep:makepad-ai-speech", "dep:makepad-ai-hub"]
maps = ["dep:makepad-mbtile-reader", "dep:makepad-fast-inflate", "dep:i_overlay"]
gltf = ["dep:makepad-gltf"]
csg = ["dep:makepad-csg"]
test = ["dep:makepad-test"]
pdf = ["dep:makepad-pdf-parse"]
cef = ["dep:makepad-cef"]
## Enables certain public-facing types to derive serde serialization traits.
serde = ["dep:serde", "makepad-draw/serde", "makepad-derive-widget/serde"]