Cargo Features

kas-core has no features set by default.

[dependencies]
kas-core = { version = "0.17.0", features = ["minimal", "stable", "nightly", "experimental", "nightly-diagnostics", "nightly-diagnostics-pedantic", "spec", "internal_doc", "ab_glyph", "shaping", "markdown", "yaml", "json", "ron", "toml", "clipboard", "accesskit", "macros_log", "wayland", "x11", "serde", "spawn", "unsafe_node"] }
minimal stable? = wayland

The minimal feature set needed to build basic applications (with assumptions about target platforms).

stable nightly? = clipboard, json, macros_log, markdown, minimal, ron, serde, spawn, toml, x11, yaml

All standard test target features

nightly = nightly-diagnostics, stable

Enables all "recommended" features for nightly rustc

experimental = unsafe_node

Additional, less recommendation-worthy features

nightly-diagnostics nightly? nightly-diagnostics-pedantic?

Enables better proc-macro diagnostics (including warnings); nightly only.

Enables nightly of kas-macros

nightly-diagnostics-pedantic = nightly-diagnostics

Enables all proc-macro diagnostics, including pedantic warnings; nightly only.

Enables nightly-pedantic of kas-macros

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.

ab_glyph

Enable ab_glyph backend (redundant)

Enables ab_glyph, ab_glyph of kas-text

shaping

Enable text shaping

Enables shaping of kas-text

markdown stable?

Enable Markdown parsing

Enables markdown of kas-text

yaml stable? = serde

Enable support for YAML (de)serialisation

Enables serde_yaml2

json stable? = serde

Enable support for JSON (de)serialisation

Enables serde_json

ron stable? = serde

Enable support for RON (de)serialisation

Enables ron

toml stable? = serde

Enable support for TOML (de)serialisation

Enables toml ^0.9.4

clipboard stable?

Enables clipboard read/write

Enables arboard and smithay-clipboard

accesskit

Enable AccessKit integration

Enables accesskit ^0.21.0 and accesskit_winit ^0.29.0

macros_log stable?

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

Enables log of kas-macros

wayland minimal?

Support Wayland

Enables wayland and wayland-dlopen of winit

x11 stable?

Support X11

Enables x11 of winit

serde json? ron? stable? toml? yaml?

Enable serde integration (mainly config read/write)

Enables serde, serde of kas-text, serde of winit

Affects factory::ConfigMode, factory::ReadWriteFactory, factory::AutoFactory

spawn stable?

Support spawning async tasks

Enables async-global-executor

unsafe_node experimental?

Optimize Node using unsafe code