Cargo Features

[dependencies]
mdbook = { version = "0.4.37", default-features = false, features = ["watch", "serve", "search"] }
default = search, serve, watch

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

watch default

Enables ignore, notify, notify-debouncer-mini, and pathdiff

notify:

Watch feature

Affects cmd::watch

serve default

Enables futures-util, tokio, and warp

futures-util:

Serve feature

Affects cmd::serve

Enables ammonia ^3.3.0 and elasticlunr-rs

elasticlunr-rs:

Search feature

Affects theme::searcher