Skip to content

Commit 1b2ab27

Browse files
committed
Docs/rust: use nightly to generate
1 parent 4b65f0a commit 1b2ab27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ docs-serve-only: docs-install ## Serve the documentation website locally without
342342
.PHONY: docs-rust
343343
docs-rust: ## Generate Rust API documentation
344344
@echo "Generating Rust API documentation..."
345-
@DATABASE_URL="sqlite::memory:" cargo doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
345+
# Using nightly with --enable-index-page to generate workspace index
346+
# See: https://github.com/rust-lang/cargo/issues/8229
347+
@DATABASE_URL="sqlite::memory:" RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
346348
@echo "Rust documentation generated in target/doc/"
347349
@echo "Entry point: target/doc/index.html"
348350

0 commit comments

Comments
 (0)