Cargo Features
[dependencies]
gitbook = { version = "0.1.1", default-features = false, features = ["watch", "serve", "search"] }
- default = search, serve, watch
-
These default features are set whenever
gitbook
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
-
Enables tokio ^0.2.18
- warp serve
-
Enables warp ^0.2.2
- elasticlunr-rs search
-
Enables elasticlunr-rs ^2.3
Search feature
- ammonia search
-
Enables ammonia ^3