From 68d9bcfec4d8750b066d0f2ee91f2086cbb2aa53 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 28 Oct 2025 11:29:48 -0700 Subject: [PATCH] Expose "search" feature from mdbook-driver This allows users of mdbook-driver to easily enable the search feature. --- crates/mdbook-driver/Cargo.toml | 3 +++ crates/mdbook-driver/src/lib.rs | 6 ++++++ 2 files changed, 9 insertions(+) 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