Cargo Features
[dependencies]
mdxbook = { version = "0.4.25", default-features = false, features = ["watch", "serve", "search"] }
- default = search, serve, watch
-
These default features are set whenever
mdxbook
is added without
somewhere in the dependency tree.default-features = false - watch default = gitignore, notify, notify-debouncer-mini
-
Affects
cmd::watch
… - serve default = futures-util, tokio, warp
-
Affects
cmd::serve
… - search default = ammonia, elasticlunr-rs
-
Affects
theme::searcher
…
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.
- notify watch
-
Enables notify ^5.0.0
Watch feature
- notify-debouncer-mini watch
-
Enables notify-debouncer-mini ^0.2.1
- gitignore watch
- futures-util serve
-
Enables futures-util
Serve feature
- tokio serve
- warp serve
- elasticlunr-rs search
-
Enables elasticlunr-rs
Search feature
- ammonia search
-
Enables ammonia ^3