Skip to content

Commit c7cf056

Browse files
committed
Makefile: add target test-doc and call it in docs-rust
1 parent 1a7db35 commit c7cf056

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ setup-wasm: ## Setup the WebAssembly toolchain, using nightly
291291
test: ## Run tests
292292
cargo test
293293

294+
.PHONY: test-doc
295+
test-doc: ## Run documentation tests only
296+
@cargo test --doc
297+
294298
.PHONY: test-ledger
295299
test-ledger: build-ledger ## Run ledger tests in release mode, requires nightly Rust
296300
@cd ledger && cargo +$(NIGHTLY_RUST_VERSION) test --release -- -Z unstable-options --report-time
@@ -553,7 +557,7 @@ docs-serve-only: docs-install ## Serve the documentation website locally without
553557
@cd website && npm start -- --port $(DOCS_PORT)
554558

555559
.PHONY: docs-rust
556-
docs-rust: ## Generate Rust API documentation
560+
docs-rust: test-doc ## Generate Rust API documentation
557561
@echo "Generating Rust API documentation..."
558562
# Using nightly with --enable-index-page to generate workspace index
559563
# See: https://github.com/rust-lang/cargo/issues/8229

0 commit comments

Comments
 (0)