Cargo Features
kas-core has no features set by default.
[dependencies]
kas-core = { version = "0.15.0", features = ["minimal", "stable", "nightly", "experimental", "spec", "internal_doc", "markdown", "shaping", "yaml", "json", "ron", "toml", "clipboard", "macros_log", "winit", "wayland", "x11", "serde", "image", "dark-light", "spawn", "recursive-layout-widgets", "unsafe_node"] }
- minimal stable? = wayland, winit
-
The minimal feature set needed to build basic applications (with assumptions about target platforms).
- stable nightly? = clipboard, image, json, macros_log, markdown, minimal, ron, serde, shaping, spawn, toml, x11, yaml
-
All standard test target features
- nightly = stable
-
Enables all "recommended" features for nightly rustc
- experimental = dark-light, recursive-layout-widgets, unsafe_node
-
Additional, less recommendation-worthy features
- 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
- shaping stable?
-
Enable text shaping
- 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 stable? = serde
-
Enable support for TOML (de)serialisation
Enables toml
- clipboard stable?
-
Enables clipboard read/write
Enables arboard and smithay-clipboard
- 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
- winit minimal?
-
Enable winit support
Enables winit
Affects
util::load_icon_from_path
… - wayland minimal?
-
Support Wayland
Enables wayland and wayland-dlopen of optional winit
- x11 stable?
-
Support X11
- serde json? ron? stable? toml? yaml?
-
Enable serde integration (mainly config read/write)
- image stable?
-
Enable load_icon_from_path utility function
Enables image
Affects
util::load_icon_from_path
… - dark-light experimental?
-
Automatically detect usage of dark theme
Enables dark-light
- spawn stable?
-
Support spawning async tasks
Enables async-global-executor
- recursive-layout-widgets experimental?
-
Optimize generated layout widgets
Enables recursive-layout-widgets of kas-macros
- unsafe_node experimental?
-
Optimize Node using unsafe code