Cargo Features

[dependencies]
stylo = { version = "0.1.0", default-features = false, features = ["gecko", "servo", "gecko_refcount_logging", "nsstring"] }
default = servo

The servo feature is set by default whenever stylo is added without default-features = false somewhere in the dependency tree.

gecko = bindgen, mozbuild, nsstring, regex, serde, toml

Enables gecko of stylo_malloc_size_of, to_shmem of stylo_selectors, gecko of stylo_traits and stylo_to_shmem

Affects dom::TElement.update_animations, dom::TElement.process_post_animation, dom::TElement.needs_transitions_update, font_face::FontFaceSourceListComponent, stylo::gecko_string_cache, stylo::gecko_bindings, stylo::Prefix, stylo::LocalName, stylo::gecko, parallel::STYLE_THREAD_STACK_SIZE_KB, shared_lock::SharedRwLockReadGuard, shared_lock::SharedRwLockWriteGuard, str::CssStringWriter, str::CssString, font_feature_values_rule::ToGeckoFontFeatureValues, import_rule::ImportSheet, stylesheets::UrlExtraData, stylist::StylistSheet, stylist::add_size_of_ua_cache, stylist::ExtraStyleData.font_faces

servo default = encoding_rs, markup5ever, mime, serde, servo_atoms, string_cache, style_config, url

Enables serde of cssparser, servo of stylo_malloc_size_of, to_shmem of stylo_selectors, servo of stylo_arc, stylo_traits, and stylo_to_shmem

Affects context::DEFAULT_DISABLE_STYLE_SHARING_CACHE, context::DEFAULT_DUMP_STYLE_STATISTICS, context::SharedStyleContext.animations, context::SharedStyleContext.registered_speculative_painters, context::RegisteredSpeculativePainter, context::RegisteredSpeculativePainters, dom::ShowSubtreeDataAndPrimaryValues, error_reporting::RustLogReporter, font_face::FontFace, stylo::attr, stylo::LocalName, stylo::Namespace, stylo::Prefix, stylo::servo, parallel::STYLE_THREAD_STACK_SIZE_KB, shared_lock::SharedRwLockReadGuard, shared_lock::SharedRwLockWriteGuard, str::CssStringWriter, str::CssString, import_rule::ImportSheet

gecko_debug gecko_refcount_logging
nsstring gecko?

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.

encoding_rs servo
markup5ever servo
mime servo
serde gecko? servo
servo_atoms servo

Enables stylo_atoms

string_cache servo
style_config servo

Enables stylo_config

url servo
bindgen build gecko?

Enables bindgen ^0.69

regex build gecko?
toml build gecko?

Enables toml ^0.5

mozbuild build gecko?