diff --git a/crates/mdbook-driver/Cargo.toml b/crates/mdbook-driver/Cargo.toml index 70b030a4..fd971d48 100644 --- a/crates/mdbook-driver/Cargo.toml +++ b/crates/mdbook-driver/Cargo.toml @@ -27,3 +27,6 @@ tracing.workspace = true [lints] workspace = true + +[features] +search = ["mdbook-html/search"] diff --git a/crates/mdbook-driver/src/lib.rs b/crates/mdbook-driver/src/lib.rs index f89ef811..46aeb257 100644 --- a/crates/mdbook-driver/src/lib.rs +++ b/crates/mdbook-driver/src/lib.rs @@ -23,6 +23,12 @@ //! for shared types. Types from this crate are rexported from the other //! crates as appropriate. //! +//! ## Cargo features +//! +//! The following cargo features are available: +//! +//! - `search`: Enables the search index in the HTML renderer. +//! //! ## Examples //! //! If creating a new book from scratch, you'll want to get a [`init::BookBuilder`] via