Cargo Features

[dependencies]
deno_doc = { version = "0.156.0", default-features = false, features = ["rust", "html", "tree-sitter", "syntect", "ammonia"] }
default = ammonia, html, rust, tree-sitter

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

rust default

Affects colors::enable_color, colors::disable_color, colors::gray, colors::italic_gray, colors::italic_cyan, deno_doc::find_nodes_by_name_recursively

html default = comrak, handlebars, html-escape
tree-sitter default = tree-sitter-bash, tree-sitter-css, tree-sitter-highlight, tree-sitter-html, tree-sitter-javascript, tree-sitter-json, tree-sitter-md, tree-sitter-regex, tree-sitter-rust, tree-sitter-typescript, tree-sitter-xml

Affects comrak_adapters::HighlightAdapter.language_cb, html::tree_sitter

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.

html-escape html
comrak html

Enables comrak ^0.28.0

handlebars html
syntect implicit feature

Enables syntect

syntect:

library for high quality syntax highlighting and code intelligence using Sublime Text's grammars

Affects comrak_adapters::HighlightAdapter.syntax_set, comrak_adapters::HighlightAdapter.theme_set

ammonia default

Affects comrak_adapters::URLRewriter, html::GenerateCtx.url_rewriter

tree-sitter-highlight tree-sitter

Enables tree-sitter-highlight ^0.22.6

tree-sitter-javascript tree-sitter

Enables tree-sitter-javascript ^0.21.4

tree-sitter-typescript tree-sitter

Enables tree-sitter-typescript ^0.21.2

tree-sitter-json tree-sitter

Enables tree-sitter-json ^0.21.0

tree-sitter-regex tree-sitter

Enables tree-sitter-regex ^0.21.0

tree-sitter-css tree-sitter

Enables tree-sitter-css ^0.21.0

tree-sitter-md tree-sitter

Enables tree-sitter-md ^0.2.3

tree-sitter-rust tree-sitter

Enables tree-sitter-rust ^0.21.2

tree-sitter-html tree-sitter

Enables tree-sitter-html ^0.20.3

tree-sitter-bash tree-sitter

Enables tree-sitter-bash ^0.21.0

tree-sitter-xml tree-sitter