Cargo Features

[dependencies]
sauron-core = { version = "0.61.8", default-features = false, features = ["with-dom", "with-lookup", "with-measure", "with-debug", "log-patches", "with-ric", "with-raf", "with-interning", "ensure-check", "ensure-attr-set", "test-fixtures", "use-skipdiff", "with-trace"] }
default = ensure-attr-set, ensure-check, with-dom, with-lookup

These default features are set whenever sauron-core is added without default-features = false somewhere in the dependency tree.

with-dom default = js-sys, wasm-bindgen, wasm-bindgen-futures, web-sys

for client-side usage

Affects cmd::Sub

with-lookup default

enumerates html tags and attributes

Affects html::lookup

with-measure

log traces for measurements in various parts of the system where performance matters.

with-debug

use in combination to with-measure to log the timings

log-patches

use in combination to with-debug to log the debug patches

with-ric

use of request_idle_callback in javascript

with-raf

use of request_animation_frame in javascript

with-interning

use caching of strings when crossing rust to js, for faster transfer

Affects dom_node::intern

ensure-check default

do checking if pending msgs, patches, cmds, has been processed accordingly to ensure proper order and synchronized dom state

ensure-attr-set default

ensure attributes is reflected into the element by explicitly calling the element corresponding methods aside fro just setting its attribute by name

Affects special::VALUE, special::OPEN, special::CHECKED, special::DISABLED

test-fixtures

include the test-fixtures for updating the program with the supplied vdom

use-skipdiff

use skipdiff to selectively skip attributes that can not change

with-trace

take measurement on each section when using template to render component

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.

js-sys with-dom
wasm-bindgen-futures with-dom
wasm-bindgen with-dom
web-sys with-dom