Cargo Features
[dependencies]
moenarchbook = { version = "0.1.1", default-features = false, features = ["watch", "serve", "search"] }
- default = search, serve, watch
-
These default features are set whenever
moenarchbook
is added without
somewhere in the dependency tree.default-features = false - watch default = gitignore, notify
-
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 ^4.0
Watch feature
- gitignore watch
- futures-util serve
-
Enables futures-util
Serve feature
- tokio serve
- warp serve
- elasticlunr-rs search
-
Enables elasticlunr-rs ^2.3
Search feature
- ammonia search
-
Enables ammonia ^3