Cargo Features

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

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 = 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-toml, tree-sitter-typescript

Affects comrak_adapters::HighlightAdapter.language_cb

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.20.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

Enables ammonia ^3.3.0

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

tree-sitter-highlight tree-sitter?

Enables tree-sitter-highlight ^0.20.1

tree-sitter-javascript tree-sitter?

Enables tree-sitter-javascript ^0.20.1

tree-sitter-typescript tree-sitter?
tree-sitter-json tree-sitter?

Enables tree-sitter-json ^0.20.1

tree-sitter-regex tree-sitter?
tree-sitter-css tree-sitter?
tree-sitter-toml tree-sitter?
tree-sitter-md tree-sitter?

Enables tree-sitter-md ^0.1.7

tree-sitter-rust tree-sitter?

Enables tree-sitter-rust ^0.20.4

tree-sitter-html tree-sitter?
tree-sitter-bash tree-sitter?

Enables tree-sitter-bash ^0.20.5