Cargo Features

mdbook = { version = "0.4.40", 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, pathdiff, and walkdir


Watch feature

Affects cmd::watch, command_prelude::CommandExt.arg_watcher

serve default

Enables futures-util, tokio, and warp


Serve feature

Affects cmd::serve, command_prelude::CommandExt.arg_watcher

Enables ammonia and elasticlunr-rs


Search feature

Affects theme::searcher