Cargo Features

kas-core has no features set by default.

[dependencies]
kas-core = { version = "0.14.1", features = ["stable", "spec", "internal_doc", "markdown", "shaping", "harfbuzz", "yaml", "json", "ron", "toml", "clipboard", "macros_log", "winit", "wayland", "x11", "serde", "dark-light", "spawn", "unsafe_node"] }

To build locally:
RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --features=stable --no-deps --open

stable = clipboard, dark-light, json, markdown, ron, serde, shaping, spawn, wayland, winit, x11, yaml

All features usable on stable rust

spec

Use full specialization

internal_doc

Enables documentation of APIs for graphics library and platform backends.
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.

markdown stable?

Enable Markdown parsing

Enables markdown of kas-text

shaping stable?

Enable text shaping

Enables shaping of kas-text

harfbuzz

Alternative: use Harfbuzz library for shaping

Enables harfbuzz of kas-text

yaml stable? = serde

Enable support for YAML (de)serialisation

Enables serde_yaml

json stable? = serde

Enable support for JSON (de)serialisation

Enables serde_json

ron stable? = serde

Enable support for RON (de)serialisation

Enables ron

toml = serde

Enable support for TOML (de)serialisation

Enables toml

clipboard stable?

Enables clipboard read/write

Enables arboard and smithay-clipboard

macros_log

Inject logging into macro-generated code.
Requires that all crates using these macros depend on the log crate.

Enables log of kas-macros

winit stable?

Enable winit support

Enables winit ^0.29.2

wayland stable?

Support Wayland

Enables wayland and wayland-dlopen of optional winit ^0.29.2

x11 stable?

Support X11

Enables x11 of optional winit ^0.29.2

serde json? ron? stable? toml? yaml?

Enable serde integration (mainly config read/write)

Enables serde, serde of kas-text, serde of optional winit ^0.29.2

Affects traits::ThemeConfig

dark-light stable?

Automatically detect usage of dark theme

Enables dark-light

spawn stable?

Support spawning async tasks

Enables async-global-executor

unsafe_node

Optimise Node using unsafe code