Documentation
[package]
name = "kas"
version = "0.6.0"
authors = ["Diggory Hardy <git@dhardy.name>"]
edition = "2018"
license = "Apache-2.0"
description = "KAS GUI Toolkit"
readme = "README.md"
documentation = "https://docs.rs/kas/"
keywords = ["gui"]
categories = ["gui"]
repository = "https://github.com/kas-gui/kas"
exclude = ["/screenshots"]

[features]
# Enables usage of unstable Rust features
nightly = ["min_spec"]

# Use Generic Associated Types (this is too unstable to include in nightly!)
gat = ["kas-text/gat"]

# Use min_specialization (enables accelerator underlining for AccelLabel)
min_spec = []

# Enables documentation of APIs for toolkits and internal use.
# This API is not intended for use by end-user applications and
# thus is omitted from built documentation by default.
# This flag does not change the API, only built documentation.
internal_doc = []

# Enables text shaping via HarfBuzz
# Shaping is part of Complex Text Layout, used for ligatures and where form
# depends on position and context (especially important for Arabic).
shaping = ["kas-text/shaping"]

# Enable Markdown parsing
markdown = ["kas-text/markdown"]

[dependencies]
log = "0.4"
smallvec = "1.4"
stack_dst = { version = "0.6", optional = true }
bitflags = "1" # only used without winit
unicode-segmentation = "1.7"
linear-map = "1.2.0"

[dependencies.kas-macros]
version = "0.6.0"
path = "kas-macros"

[dependencies.kas-text]
version = "0.2.0"
# git = "https://github.com/kas-gui/kas-text"
# rev = ""

[dependencies.winit]
# Provides translations for several winit types
version = "0.23"
optional = true

[workspace]
members = ["kas-macros", "kas-theme", "kas-wgpu"]

[package.metadata.docs.rs]
features = ["nightly", "stack_dst", "winit"]