Cargo Features

[dependencies]
sauron = { version = "0.61.7", default-features = false, features = ["with-dom", "with-lookup", "with-ric", "with-raf", "with-interning", "with-jss", "with-measure", "with-debug", "log-patches", "test-fixtures", "with-trace", "with-node-macro", "html-parser", "use-skipdiff"] }
default = with-dom, with-interning, with-jss, with-node-macro

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

with-dom default

Enables with-dom of sauron-core

sauron-core:

for client-side usage

with-lookup with-jss

Enables with-lookup of sauron-core

sauron-core:

enumerates html tags and attributes

with-ric

Enables with-ric of sauron-core

sauron-core:

use of request_idle_callback in javascript

with-raf

Enables with-raf of sauron-core

sauron-core:

use of request_animation_frame in javascript

with-interning default

Enables with-interning of sauron-core

sauron-core:

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

with-jss default = sauron-macro, with-lookup

enable use of jss (css style in json format)

with-measure

shows telemetry such as duration it took to update the dom

Enables with-measure of sauron-core

with-debug log-patches?

log debug patches

Enables with-debug of sauron-core

log-patches = with-debug

Enables log-patches of sauron-core

sauron-core:

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

test-fixtures

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

Enables test-fixtures of sauron-core

with-trace

Enables with-trace of sauron-core

sauron-core:

take measurement on each section when using template to render component

with-node-macro default = sauron-macro

lets you use node! macro to write html like code in the view

html-parser = sauron-html-parser
use-skipdiff

Enables use-skipdiff of sauron-core

sauron-core:

use skipdiff to selectively skip attributes that can not change

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.

sauron-macro with-jss with-node-macro
sauron-html-parser html-parser?