Cargo Features
[dependencies]
stylist = { version = "0.13.0", default-features = false, features = ["debug_parser", "debug_style_locations", "macros", "random", "parser", "yew_integration", "yew_use_media_query", "yew_use_style", "ssr", "hydration"] }
- default = debug_parser, debug_style_locations, macros, random
-
These default features are set whenever
stylist
is added without
somewhere in the dependency tree.default-features = false - debug_parser default
-
Enables parser of stylist-core
- debug_style_locations default
- macros default = stylist-macros
-
Affects
stylist::macros
… - random default
- parser
-
Enables parser of stylist-core
- yew_integration = yew, yew_use_media_query, yew_use_style
- yew_use_media_query yew_integration? = yew
-
Enables gloo-events, MediaQueryList of web-sys
Affects
use_media_query::use_media_query
,use_media_query::use_prepared_media_query
… - yew_use_style yew_integration? = yew
-
Affects
use_style::use_style
… - ssr = html-escape
- hydration
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.
- stylist-macros macros
- yew yew_integration? yew_use_media_query? yew_use_style?
-
Affects
stylist::yew
… - html-escape ssr?