Cargo Features

[dependencies]
salvation-cosmic-text = { version = "0.12.0", default-features = false, features = ["no_std", "std", "fontconfig", "shape-run-cache", "vi", "wasm-web", "warn_on_missing_glyphs", "swash"] }
default = fontconfig, std, swash

These default features are set whenever salvation-cosmic-text is added without default-features = false somewhere in the dependency tree.

no_std = hashbrown

Enables rustybuzz ^0.12.0

std default fontconfig = sys-locale

Enables memmap and std of fontdb ^0.16.0 and std of rustybuzz ^0.12.0, ttf-parser ^0.20.0, and unicode-bidi

ttf-parser:

Enables the use of the standard library. When disabled, the no-std-float feature must be enabled instead.

Affects math::roundf, math::truncf

fontconfig default = std

Enables fontconfig of fontdb ^0.16.0

fontdb:

Enables minimal fontconfig support on Linux.
Must be enabled for NixOS, otherwise no fonts will be loaded.

shape-run-cache

Affects system::FontSystem.shape_run_cache

vi = cosmic_undo_2, modit, syntect
wasm-web

Enables js of optional sys-locale

warn_on_missing_glyphs

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cosmic_undo_2 vi?
hashbrown no_std?

Enables hashbrown ^0.14.1

modit vi?
swash default
syntect vi?
sys-locale std