Cargo Features

[dependencies]
charming = { version = "0.4.0", default-features = false, features = ["html", "ssr", "wasm"] }
default = html

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

html default ssr? = handlebars

Affects renderer::html_renderer

ssr = deno_core, html, image, resvg, serde_v8

Affects renderer::image_renderer

wasm = serde-wasm-bindgen, wasm-bindgen, web-sys

Affects renderer::wasm_renderer

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.

deno_core ssr?
handlebars html

Enables handlebars ^4.3

image ssr?

Enables image ^0.24

resvg ssr?

Enables resvg ^0.36

serde-wasm-bindgen wasm?
serde_v8 ssr?
wasm-bindgen wasm?
web-sys wasm?